Skip to content

Commit ff10209

Browse files
Revert "ethclient: use 'input', not 'data' as field for transaction input (ethereum#28078)"
This reverts commit 5cf53f5. Signed-off-by: Justin Yang <justin.yang@crypted.co.kr>
1 parent eaac53e commit ff10209

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
@@ -645,7 +645,7 @@ func toCallArg(msg ethereum.CallMsg) interface{} {
645645
"to": msg.To,
646646
}
647647
if len(msg.Data) > 0 {
648-
arg["input"] = hexutil.Bytes(msg.Data)
648+
arg["data"] = hexutil.Bytes(msg.Data)
649649
}
650650
if msg.Value != nil {
651651
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)