Skip to content

Commit

Permalink
Merge branch 'apply-upgrades-state-at-block' of github.com:ava-labs/s…
Browse files Browse the repository at this point in the history
…ubnet-evm into apply-upgrades-state-at-block
  • Loading branch information
ceyonur committed Nov 17, 2023
2 parents 2d2bd45 + f6e8008 commit 85878af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth/tracers/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -952,7 +952,7 @@ func (api *API) TraceCall(ctx context.Context, args ethapi.TransactionArgs, bloc
if config != nil {
originalTime := block.Time()
config.BlockOverrides.Apply(&vmctx)
// Apply upgrades here as if the block was mined at the modified time.
// Apply all relevant upgrades from [originalTime] to the block time set in the override.
// Should be applied before the state overrides.
err = core.ApplyUpgrades(api.backend.ChainConfig(), &originalTime, &vmctx, statedb)
if err != nil {
Expand Down

0 comments on commit 85878af

Please sign in to comment.