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 5, 2024
1 parent 8128d9e commit 46860cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ethereum/eip712/eip712.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,14 @@ func ConstructUntypedEIP712Data(
bz := legacytx.RegressionTestingAminoCodec.MustMarshalJSON(msg)
fmt.Println("ConstructUntypedEIP712Data bz", bz)
msgBytes := sdk.MustSortJSON(bz)
fmt.Println("ConstructUntypedEIP712Data msgBytes", msgBytes)
fmt.Println("ConstructUntypedEIP712Data msgBytes", json.RawMessage(msgBytes))

//legacyMsg, ok := msg.(legacytx.LegacyMsg)
//if !ok {
// panic(fmt.Errorf("expected %T when using amino JSON", (*legacytx.LegacyMsg)(nil)))
//}
//msgsBytes := json.RawMessage(legacyMsg.GetSignBytes())
inInterface[fmt.Sprintf("msg%d", i+1)] = msgBytes
inInterface[fmt.Sprintf("msg%d", i+1)] = json.RawMessage(msgBytes)
}

bz, err := json.Marshal(inInterface)
Expand Down

0 comments on commit 46860cc

Please sign in to comment.