From 59969b95825c0422e25f949f781b8cbd57e2cdc7 Mon Sep 17 00:00:00 2001 From: Vladyslav Budichenko Date: Thu, 31 Oct 2024 12:56:42 -0400 Subject: [PATCH] wip: update message signer --- app/ante/eip712.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/ante/eip712.go b/app/ante/eip712.go index 721d51e303..57b760c981 100644 --- a/app/ante/eip712.go +++ b/app/ante/eip712.go @@ -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) @@ -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(