fix(ethclient): eth_call ethereum api compliant

Signed-off-by: Isma <71719097+Doozers@users.noreply.github.com>
This commit is contained in:
Isma 2023-09-26 13:37:34 +02:00
parent 40219109b0
commit 211b44558e
No known key found for this signature in database
GPG key ID: 6D866AE874AF1512

View file

@ -619,7 +619,7 @@ func toCallArg(msg ethereum.CallMsg) interface{} {
"to": msg.To,
}
if len(msg.Data) > 0 {
arg["input"] = hexutil.Bytes(msg.Data)
arg["data"] = hexutil.Bytes(msg.Data)
}
if msg.Value != nil {
arg["value"] = (*hexutil.Big)(msg.Value)