mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
docs
This commit is contained in:
parent
5b243e4b42
commit
599fdedadc
1 changed files with 1 additions and 1 deletions
|
|
@ -1627,6 +1627,7 @@ func AccessList(ctx context.Context, b Backend, blockNrOrHash rpc.BlockNumberOrH
|
||||||
return nil, 0, nil, err
|
return nil, 0, nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// fill in missing fields based on the state at the specified block
|
||||||
if args.Nonce == nil {
|
if args.Nonce == nil {
|
||||||
nonce := hexutil.Uint64(db.GetNonce(args.from()))
|
nonce := hexutil.Uint64(db.GetNonce(args.from()))
|
||||||
args.Nonce = &nonce
|
args.Nonce = &nonce
|
||||||
|
|
@ -1635,7 +1636,6 @@ func AccessList(ctx context.Context, b Backend, blockNrOrHash rpc.BlockNumberOrH
|
||||||
if err := args.CallDefaults(b.RPCGasCap(), blockCtx.BaseFee, b.ChainConfig().ChainID); err != nil {
|
if err := args.CallDefaults(b.RPCGasCap(), blockCtx.BaseFee, b.ChainConfig().ChainID); err != nil {
|
||||||
return types.AccessList{}, 0, nil, err
|
return types.AccessList{}, 0, nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
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