mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
internal/ethapi: set dynamic fee fields to 0 in access list so that setting NoBaseFee will disable subsequent validation
This commit is contained in:
parent
84a80216c6
commit
612d2819bb
1 changed files with 6 additions and 0 deletions
|
|
@ -1631,6 +1631,12 @@ func AccessList(ctx context.Context, b Backend, blockNrOrHash rpc.BlockNumberOrH
|
||||||
if err := args.setDefaults(ctx, b, true); err != nil {
|
if err := args.setDefaults(ctx, b, true); err != nil {
|
||||||
return nil, 0, nil, err
|
return nil, 0, nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set dynamic fee fields to 0 to avoid validation checks during execution.
|
||||||
|
// These are irrelevant to calculation of access lists and gas cost.
|
||||||
|
args.MaxFeePerGas = new(hexutil.Big)
|
||||||
|
args.MaxPriorityFeePerGas = new(hexutil.Big)
|
||||||
|
|
||||||
var to common.Address
|
var to common.Address
|
||||||
if args.To != nil {
|
if args.To != nil {
|
||||||
to = *args.To
|
to = *args.To
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue