mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Update ethclient.go
Reverting changes from v13 that broke smart contract function calls
This commit is contained in:
parent
4985d83b8f
commit
81e17336ce
1 changed files with 1 additions and 1 deletions
|
|
@ -619,7 +619,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)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue