Skip to content

Commit 26688a3

Browse files
authored
Merge pull request #1 from jasonzwli/jason/fix-data
[fix] make geth compatible with hardhat
2 parents 661bd45 + 71c4afe commit 26688a3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ethclient/ethclient.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ func toCallArg(msg ethereum.CallMsg) interface{} {
647647
"to": msg.To,
648648
}
649649
if len(msg.Data) > 0 {
650-
arg["input"] = hexutil.Bytes(msg.Data)
650+
arg["data"] = hexutil.Bytes(msg.Data)
651651
}
652652
if msg.Value != nil {
653653
arg["value"] = (*hexutil.Big)(msg.Value)

ethclient/gethclient/gethclient.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ func toCallArg(msg ethereum.CallMsg) interface{} {
225225
"to": msg.To,
226226
}
227227
if len(msg.Data) > 0 {
228-
arg["input"] = hexutil.Bytes(msg.Data)
228+
arg["data"] = hexutil.Bytes(msg.Data)
229229
}
230230
if msg.Value != nil {
231231
arg["value"] = (*hexutil.Big)(msg.Value)

0 commit comments

Comments
 (0)