Skip to content

Commit

Permalink
Use input as it is more recent
Browse files Browse the repository at this point in the history
  • Loading branch information
ilanolkies committed Oct 14, 2024
1 parent 580ba73 commit 13f2d6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/chains/evm/client/compatibility_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ func ToBackwardCompatibleCallArg(msg ethereum.CallMsg) interface{} {
"to": msg.To,
}
if len(msg.Data) > 0 {
// arg["input"] = hexutil.Bytes(msg.Data)
arg["data"] = hexutil.Bytes(msg.Data) // duplicate legacy field for compatibility
arg["input"] = hexutil.Bytes(msg.Data)
// arg["data"] = hexutil.Bytes(msg.Data) // duplicate legacy field for compatibility
}
if msg.Value != nil {
arg["value"] = (*hexutil.Big)(msg.Value)
Expand Down
Binary file added gencodec
Binary file not shown.

0 comments on commit 13f2d6a

Please sign in to comment.