Skip to content

Commit 5cf53f5

Browse files
authored
ethclient: use 'input', not 'data' as field for transaction input (#28078)
1 parent 83886e4 commit 5cf53f5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ethclient/ethclient.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ func toCallArg(msg ethereum.CallMsg) interface{} {
619619
"to": msg.To,
620620
}
621621
if len(msg.Data) > 0 {
622-
arg["data"] = hexutil.Bytes(msg.Data)
622+
arg["input"] = hexutil.Bytes(msg.Data)
623623
}
624624
if msg.Value != nil {
625625
arg["value"] = (*hexutil.Big)(msg.Value)

ethclient/gethclient/gethclient.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ func toCallArg(msg ethereum.CallMsg) interface{} {
225225
"to": msg.To,
226226
}
227227
if len(msg.Data) > 0 {
228-
arg["data"] = hexutil.Bytes(msg.Data)
228+
arg["input"] = hexutil.Bytes(msg.Data)
229229
}
230230
if msg.Value != nil {
231231
arg["value"] = (*hexutil.Big)(msg.Value)

0 commit comments

Comments
 (0)