Skip to content

Commit 6eae7cc

Browse files
colinlyguofjl
authored andcommitted
ethclient: apply accessList field in toCallArg (ethereum#28832)
Co-authored-by: Felix Lange <[email protected]>
1 parent 5d9b288 commit 6eae7cc

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
@@ -585,5 +585,8 @@ func toCallArg(msg ethereum.CallMsg) interface{} {
585585
if msg.GasTipCap != nil {
586586
arg["maxPriorityFeePerGas"] = (*hexutil.Big)(msg.GasTipCap)
587587
}
588+
if msg.AccessList != nil {
589+
arg["accessList"] = msg.AccessList
590+
}
588591
return arg
589592
}

ethclient/gethclient/gethclient.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,15 @@ func toCallArg(msg ethereum.CallMsg) interface{} {
207207
if msg.GasPrice != nil {
208208
arg["gasPrice"] = (*hexutil.Big)(msg.GasPrice)
209209
}
210+
if msg.GasFeeCap != nil {
211+
arg["maxFeePerGas"] = (*hexutil.Big)(msg.GasFeeCap)
212+
}
213+
if msg.GasTipCap != nil {
214+
arg["maxPriorityFeePerGas"] = (*hexutil.Big)(msg.GasTipCap)
215+
}
216+
if msg.AccessList != nil {
217+
arg["accessList"] = msg.AccessList
218+
}
210219
return arg
211220
}
212221

0 commit comments

Comments
 (0)