mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
try using CallDefaults instead of setDefaults (AccessList is an eth_call-like operation)
This commit is contained in:
parent
612d2819bb
commit
5fce58e5b2
1 changed files with 2 additions and 9 deletions
|
|
@ -1627,15 +1627,8 @@ func AccessList(ctx context.Context, b Backend, blockNrOrHash rpc.BlockNumberOrH
|
||||||
return nil, 0, nil, err
|
return nil, 0, nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ensure any missing fields are filled, extract the recipient and input data
|
blockCtx := core.NewEVMBlockContext(header, NewChainContext(ctx, b), nil)
|
||||||
if err := args.setDefaults(ctx, b, true); err != nil {
|
args.CallDefaults(b.RPCGasCap(), blockCtx.BaseFee, b.ChainConfig().ChainID)
|
||||||
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 {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue