Skip to content

Commit aa48130

Browse files
committed
it
1 parent 40cb7a8 commit aa48130

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

app/ante/evm_checktx.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,11 @@ func EvmCheckTxAnte(
9292
return ctx, sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, err.Error())
9393
}
9494

95-
etx, txData := msg.AsTransaction()
96-
// need to check for error here - previously
95+
etx, txData, err := msg.AsTransaction()
96+
if err != nil {
97+
return ctx, err
98+
}
99+
97100
if atx, ok := txData.(*ethtx.AssociateTx); ok {
98101
return HandleAssociateTx(ctx, ek, atx)
99102
}

0 commit comments

Comments
 (0)