Skip to content

Commit 3ab199a

Browse files
committed
CORE-2477 Hardhat compatibility
1 parent 36b2371 commit 3ab199a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

ethclient/ethclient.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -735,6 +735,7 @@ func toCallArg(msg ethereum.CallMsg) interface{} {
735735
}
736736
if len(msg.Data) > 0 {
737737
arg["input"] = hexutil.Bytes(msg.Data)
738+
arg["data"] = hexutil.Bytes(msg.Data)
738739
}
739740
if msg.Value != nil {
740741
arg["value"] = (*hexutil.Big)(msg.Value)

ethclient/gethclient/gethclient.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ func toCallArg(msg ethereum.CallMsg) interface{} {
226226
}
227227
if len(msg.Data) > 0 {
228228
arg["input"] = hexutil.Bytes(msg.Data)
229+
arg["data"] = hexutil.Bytes(msg.Data)
229230
}
230231
if msg.Value != nil {
231232
arg["value"] = (*hexutil.Big)(msg.Value)

0 commit comments

Comments
 (0)