Skip to content

Commit

Permalink
fix regressions in trace_call and eth_createAccessList introduced by PR
Browse files Browse the repository at this point in the history
  • Loading branch information
bgelb committed Jul 24, 2022
1 parent e85796a commit 6481757
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/rpcdaemon/commands/eth_call.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion cmd/rpcdaemon/commands/trace_adhoc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 6481757

Please sign in to comment.