1
0
Fork 0
forked from forks/go-ethereum

Update ethclient/gethclient/gethclient.go

This commit is contained in:
as-helios 2025-05-18 23:59:48 +00:00
parent a1d7410f17
commit 3c7bc5553e

View file

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