Skip to content

Commit 977c195

Browse files
colinlyguofjl
authored andcommitted
ethclient: apply accessList field in toCallArg (ethereum#28832)
Co-authored-by: Felix Lange <[email protected]>
1 parent 763ddfb commit 977c195

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

ethclient/ethclient.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -662,6 +662,9 @@ func toCallArg(msg ethereum.CallMsg) interface{} {
662662
if msg.GasTipCap != nil {
663663
arg["maxPriorityFeePerGas"] = (*hexutil.Big)(msg.GasTipCap)
664664
}
665+
if msg.AccessList != nil {
666+
arg["accessList"] = msg.AccessList
667+
}
665668
return arg
666669
}
667670

ethclient/gethclient/gethclient.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,15 @@ func toCallArg(msg ethereum.CallMsg) interface{} {
236236
if msg.GasPrice != nil {
237237
arg["gasPrice"] = (*hexutil.Big)(msg.GasPrice)
238238
}
239+
if msg.GasFeeCap != nil {
240+
arg["maxFeePerGas"] = (*hexutil.Big)(msg.GasFeeCap)
241+
}
242+
if msg.GasTipCap != nil {
243+
arg["maxPriorityFeePerGas"] = (*hexutil.Big)(msg.GasTipCap)
244+
}
245+
if msg.AccessList != nil {
246+
arg["accessList"] = msg.AccessList
247+
}
239248
return arg
240249
}
241250

0 commit comments

Comments
 (0)