From 599fdedadc88acece83df507dfead81858456b3d Mon Sep 17 00:00:00 2001 From: Jared Wasinger Date: Tue, 8 Oct 2024 19:25:26 +0700 Subject: [PATCH] docs --- internal/ethapi/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index e5b36fdd71..791bc40191 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -1627,6 +1627,7 @@ func AccessList(ctx context.Context, b Backend, blockNrOrHash rpc.BlockNumberOrH return nil, 0, nil, err } + // fill in missing fields based on the state at the specified block if args.Nonce == nil { nonce := hexutil.Uint64(db.GetNonce(args.from())) 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 { return types.AccessList{}, 0, nil, err } - var to common.Address if args.To != nil { to = *args.To