fix regressions in trace_call and eth_createAccessList introduced by PR #3517 (#4807)

This commit is contained in:
bgelb 2022-07-24 01:50:43 -07:00 committed by GitHub
parent e85796a38c
commit 6481757175
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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()

View File

@ -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)