diff --git a/core/state_processor.go b/core/state_processor.go
index 044f121edc4a22f7bcbb62aabb1847852f1abad0..0667b8dba26c2a9e84a292fe2a6a595ed11325a8 100644
--- a/core/state_processor.go
+++ b/core/state_processor.go
@@ -143,10 +143,6 @@ func applyTransaction(config *params.ChainConfig, gp *GasPool, statedb *state.In
 func ApplyTransaction(config *params.ChainConfig, getHeader func(hash common.Hash, number uint64) *types.Header, engine consensus.Engine, author *common.Address, gp *GasPool, ibs *state.IntraBlockState, stateWriter state.StateWriter, header *types.Header, tx types.Transaction, usedGas *uint64, cfg vm.Config, contractHasTEVM func(contractHash common.Hash) (bool, error)) (*types.Receipt, []byte, error) {
 	// Create a new context to be used in the EVM environment
 
-	// Add addresses to access list if applicable
-	// about the transaction and calling mechanisms.
-	cfg.SkipAnalysis = SkipAnalysis(config, header.Number.Uint64())
-
 	var vmenv vm.VMInterface
 
 	if tx.IsStarkNet() {
@@ -156,5 +152,9 @@ func ApplyTransaction(config *params.ChainConfig, getHeader func(hash common.Has
 		vmenv = vm.NewEVM(blockContext, vm.TxContext{}, ibs, config, cfg)
 	}
 
+	// Add addresses to access list if applicable
+	// about the transaction and calling mechanisms.
+	cfg.SkipAnalysis = SkipAnalysis(config, header.Number.Uint64())
+
 	return applyTransaction(config, gp, ibs, stateWriter, header, tx, usedGas, vmenv, cfg)
 }