ethclient: use 'input', not 'data' as field for transaction input (#28078)

pull/28087/head
Martin Holst Swende 1 year ago committed by GitHub
parent 83886e40b6
commit 5cf53f51ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      ethclient/ethclient.go
  2. 2
      ethclient/gethclient/gethclient.go

@ -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)

Loading…
Cancel
Save