@@ -79,7 +79,7 @@ func (p *StateProcessor) Process(block *types.Block, statedb *state.StateDB, cfg
79
79
return nil , nil , 0 , fmt .Errorf ("could not apply tx %d [%v]: %w" , i , tx .Hash ().Hex (), err )
80
80
}
81
81
statedb .Prepare (tx .Hash (), i )
82
- receipt , err := applyTransaction (msg , p .config , p . bc , nil , gp , statedb , blockNumber , blockHash , tx , usedGas , vmenv )
82
+ receipt , err := applyTransaction (msg , p .config , nil , gp , statedb , blockNumber , blockHash , tx , usedGas , vmenv )
83
83
if err != nil {
84
84
return nil , nil , 0 , fmt .Errorf ("could not apply tx %d [%v]: %w" , i , tx .Hash ().Hex (), err )
85
85
}
@@ -92,7 +92,7 @@ func (p *StateProcessor) Process(block *types.Block, statedb *state.StateDB, cfg
92
92
return receipts , allLogs , * usedGas , nil
93
93
}
94
94
95
- func applyTransaction (msg types.Message , config * params.ChainConfig , bc ChainContext , author * common.Address , gp * GasPool , statedb * state.StateDB , blockNumber * big.Int , blockHash common.Hash , tx * types.Transaction , usedGas * uint64 , evm * vm.EVM ) (* types.Receipt , error ) {
95
+ func applyTransaction (msg types.Message , config * params.ChainConfig , author * common.Address , gp * GasPool , statedb * state.StateDB , blockNumber * big.Int , blockHash common.Hash , tx * types.Transaction , usedGas * uint64 , evm * vm.EVM ) (* types.Receipt , error ) {
96
96
// Create a new context to be used in the EVM environment.
97
97
txContext := NewEVMTxContext (msg )
98
98
evm .Reset (txContext , statedb )
@@ -149,5 +149,5 @@ func ApplyTransaction(config *params.ChainConfig, bc ChainContext, author *commo
149
149
// Create a new context to be used in the EVM environment
150
150
blockContext := NewEVMBlockContext (header , bc , author )
151
151
vmenv := vm .NewEVM (blockContext , vm.TxContext {}, statedb , config , cfg )
152
- return applyTransaction (msg , config , bc , author , gp , statedb , header .Number , header .Hash (), tx , usedGas , vmenv )
152
+ return applyTransaction (msg , config , author , gp , statedb , header .Number , header .Hash (), tx , usedGas , vmenv )
153
153
}
0 commit comments