diff --git a/rpc/backend/sign_tx.go b/rpc/backend/sign_tx.go index 355e466c4a..d047b5e28b 100644 --- a/rpc/backend/sign_tx.go +++ b/rpc/backend/sign_tx.go @@ -159,7 +159,7 @@ func (b *Backend) SignTypedData(address common.Address, typedData apitypes.Typed // TODO(boodyvo): identify the signing mode // Sign the requested hash with the wallet - signature, _, err := b.clientCtx.Keyring.SignByAddress(from, sigHash, signing.SignMode_SIGN_MODE_LEGACY_AMINO_JSON) + signature, _, err := b.clientCtx.Keyring.SignByAddress(from, sigHash, signing.SignMode_SIGN_MODE_TEXTUAL) if err != nil { b.logger.Error("keyring.SignByAddress failed", "address", address.Hex()) return nil, err diff --git a/x/evm/handler.go b/x/evm/handler.go index 5e6c9f45c9..d3481c2778 100644 --- a/x/evm/handler.go +++ b/x/evm/handler.go @@ -17,9 +17,11 @@ package evm import ( errorsmod "cosmossdk.io/errors" + "fmt" "github.com/cosmos/cosmos-sdk/baseapp" sdk "github.com/cosmos/cosmos-sdk/types" errortypes "github.com/cosmos/cosmos-sdk/types/errors" + "runtime/debug" "github.com/evmos/ethermint/x/evm/types" ) @@ -27,6 +29,9 @@ import ( // NewHandler returns a handler for Ethermint type messages. func NewHandler(server types.MsgServer) baseapp.MsgServiceHandler { return func(ctx sdk.Context, msg sdk.Msg) (result *sdk.Result, err error) { + fmt.Println("evm handler execution", msg) + debug.PrintStack() + ctx = ctx.WithEventManager(sdk.NewEventManager()) switch msg := msg.(type) {