Skip to content

Commit

Permalink
wip: update e2e test for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
boodyvo committed Nov 4, 2024
1 parent 8eda2c9 commit 7c83cdc
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions ethereum/eip712/eip712.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,15 @@ func extractMsgTypes(msgs []sdk.Msg, params evmtypes.Params) (apitypes.Types, er
msgTypeName := fmt.Sprintf("Msg%d", i+1)

// ensure eip712 messages implement legacytx.LegacyMsg
_, ok := msg.(legacytx.LegacyMsg)
//_, ok := msg.(legacytx.LegacyMsg)
//if !ok {
// err := errorsmod.Wrapf(sdkerrors.ErrInvalidType, "msg %T must implement legacytx.LegacyMsg", (*legacytx.LegacyMsg)(nil))
// return apitypes.Types{}, err
//}

_, ok := msg.(sdk.Msg)
if !ok {
err := errorsmod.Wrapf(sdkerrors.ErrInvalidType, "msg %T must implement legacytx.LegacyMsg", (*legacytx.LegacyMsg)(nil))
err := errorsmod.Wrapf(sdkerrors.ErrInvalidType, "msg %T must implement sdk.Msg", (*sdk.Msg)(nil))
return apitypes.Types{}, err
}

Expand Down

0 comments on commit 7c83cdc

Please sign in to comment.