ethclient: use 'input', not 'data' as field for transaction input (#28078)
This commit is contained in:
1 parent
83886e40b6
commit
5cf53f51ac
2 files changed
+2
-2
No files matched your search
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user