From 81e17336ceeb470ed6799e5d77df1566c13ff89e Mon Sep 17 00:00:00 2001 From: ^Dan^ <25278291+indanielo@users.noreply.github.com> Date: Tue, 26 Sep 2023 10:42:07 +0200 Subject: [PATCH] Update ethclient.go Reverting changes from v13 that broke smart contract function calls --- ethclient/ethclient.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethclient/ethclient.go b/ethclient/ethclient.go index af373b9938..b2dae136eb 100644 --- a/ethclient/ethclient.go +++ b/ethclient/ethclient.go @@ -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)