Skip to content

Commit

Permalink
fix: incorrect access copy (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
gballet committed May 8, 2024
1 parent 2042b57 commit 3612353
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/vm/evm.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func NewEVM(blockCtx BlockContext, txCtx TxContext, statedb StateDB, chainConfig
chainRules: chainConfig.Rules(blockCtx.BlockNumber, blockCtx.Random != nil, blockCtx.Time),
}
if txCtx.Accesses == nil && chainConfig.IsPrague(blockCtx.BlockNumber, blockCtx.Time) {
txCtx.Accesses = evm.StateDB.(*state.StateDB).NewAccessWitness()
evm.Accesses = evm.StateDB.(*state.StateDB).NewAccessWitness()
}
evm.interpreter = NewEVMInterpreter(evm)
return evm
Expand Down

0 comments on commit 3612353

Please sign in to comment.