Skip to content

Commit

Permalink
[R4R]-feature: ethclient: use 'input', not 'data' as field for transa…
Browse files Browse the repository at this point in the history
…ction input (#59)
  • Loading branch information
asdv23 authored Mar 6, 2024
1 parent 0bd29f8 commit 2eaa043
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ethclient/ethclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,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 2eaa043

Please sign in to comment.