From 648175717590fd76fa10afbe8894f2f691f62a73 Mon Sep 17 00:00:00 2001 From: bgelb Date: Sun, 24 Jul 2022 01:50:43 -0700 Subject: [PATCH] fix regressions in trace_call and eth_createAccessList introduced by PR #3517 (#4807) --- cmd/rpcdaemon/commands/eth_call.go | 2 +- cmd/rpcdaemon/commands/trace_adhoc.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/rpcdaemon/commands/eth_call.go b/cmd/rpcdaemon/commands/eth_call.go index 714c0ecc195..e32d7d814bb 100644 --- a/cmd/rpcdaemon/commands/eth_call.go +++ b/cmd/rpcdaemon/commands/eth_call.go @@ -320,7 +320,7 @@ func (api *APIImpl) CreateAccessList(ctx context.Context, args ethapi.CallArgs, } stateReader = state.NewCachedReader2(cacheView, tx) } else { - stateReader = state.NewPlainState(tx, blockNumber) + stateReader = state.NewPlainState(tx, blockNumber+1) } header := block.Header() diff --git a/cmd/rpcdaemon/commands/trace_adhoc.go b/cmd/rpcdaemon/commands/trace_adhoc.go index b180f26951f..acb42089017 100644 --- a/cmd/rpcdaemon/commands/trace_adhoc.go +++ b/cmd/rpcdaemon/commands/trace_adhoc.go @@ -879,7 +879,7 @@ func (api *TraceAPIImpl) Call(ctx context.Context, args TraceCallParam, traceTyp } stateReader = state.NewCachedReader2(cacheView, tx) } else { - stateReader = state.NewPlainState(tx, blockNumber) + stateReader = state.NewPlainState(tx, blockNumber+1) } ibs := state.New(stateReader)