Skip to content

Commit

Permalink
ethclient: use 'input', not 'data' as field for transaction input (#2…
Browse files Browse the repository at this point in the history
  • Loading branch information
holiman committed Sep 8, 2023
1 parent 83886e4 commit 5cf53f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ethclient/ethclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ func toCallArg(msg ethereum.CallMsg) interface{} {
"to": msg.To,
}
if len(msg.Data) > 0 {
arg["data"] = hexutil.Bytes(msg.Data)
arg["input"] = hexutil.Bytes(msg.Data)
}
if msg.Value != nil {
arg["value"] = (*hexutil.Big)(msg.Value)
Expand Down
2 changes: 1 addition & 1 deletion ethclient/gethclient/gethclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ func toCallArg(msg ethereum.CallMsg) interface{} {
"to": msg.To,
}
if len(msg.Data) > 0 {
arg["data"] = hexutil.Bytes(msg.Data)
arg["input"] = hexutil.Bytes(msg.Data)
}
if msg.Value != nil {
arg["value"] = (*hexutil.Big)(msg.Value)
Expand Down

0 comments on commit 5cf53f5

Please sign in to comment.