Skip to content

Commit

Permalink
wip: update message signer
Browse files Browse the repository at this point in the history
  • Loading branch information
boodyvo committed Oct 31, 2024
1 parent 63d9779 commit 59969b9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/ante/eip712.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ func (svd LegacyEip712SigVerificationDecorator) AnteHandle(ctx sdk.Context,
simulate bool,
next sdk.AnteHandler,
) (newCtx sdk.Context, err error) {
fmt.Println("AnteHandle for eip712")

// no need to verify signatures on recheck tx
if ctx.IsReCheckTx() {
return next(ctx, tx, simulate)
Expand All @@ -127,11 +129,15 @@ func (svd LegacyEip712SigVerificationDecorator) AnteHandle(ctx sdk.Context,
return ctx, err
}

fmt.Println("eip712 sigs: ", sigs)

signerAddrs, err := sigTx.GetSigners()
if err != nil {
return ctx, err
}

fmt.Println("eip712 addresses: ", sigs)

// EIP712 allows just one signature
if len(sigs) != 1 {
return ctx, errorsmod.Wrapf(
Expand Down

0 comments on commit 59969b9

Please sign in to comment.