mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-08 14:04:29 +00:00
ethclient: apply accessList field in toCallArg (#28832)
Co-authored-by: Felix Lange <fjl@twurst.com>
This commit is contained in:
parent
0237985f58
commit
bb55c1044b
2 changed files with 12 additions and 0 deletions
|
|
@ -585,5 +585,8 @@ func toCallArg(msg ethereum.CallMsg) interface{} {
|
||||||
if msg.GasTipCap != nil {
|
if msg.GasTipCap != nil {
|
||||||
arg["maxPriorityFeePerGas"] = (*hexutil.Big)(msg.GasTipCap)
|
arg["maxPriorityFeePerGas"] = (*hexutil.Big)(msg.GasTipCap)
|
||||||
}
|
}
|
||||||
|
if msg.AccessList != nil {
|
||||||
|
arg["accessList"] = msg.AccessList
|
||||||
|
}
|
||||||
return arg
|
return arg
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -207,6 +207,15 @@ func toCallArg(msg ethereum.CallMsg) interface{} {
|
||||||
if msg.GasPrice != nil {
|
if msg.GasPrice != nil {
|
||||||
arg["gasPrice"] = (*hexutil.Big)(msg.GasPrice)
|
arg["gasPrice"] = (*hexutil.Big)(msg.GasPrice)
|
||||||
}
|
}
|
||||||
|
if msg.GasFeeCap != nil {
|
||||||
|
arg["maxFeePerGas"] = (*hexutil.Big)(msg.GasFeeCap)
|
||||||
|
}
|
||||||
|
if msg.GasTipCap != nil {
|
||||||
|
arg["maxPriorityFeePerGas"] = (*hexutil.Big)(msg.GasTipCap)
|
||||||
|
}
|
||||||
|
if msg.AccessList != nil {
|
||||||
|
arg["accessList"] = msg.AccessList
|
||||||
|
}
|
||||||
return arg
|
return arg
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue