Skip to content

Commit feb6620

Browse files
AlexeyAkhunovfjl
authored andcommitted
core: relax type requirement for bc in ApplyTransaction (#16901)
1 parent 90b2277 commit feb6620

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎core/state_processor.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ func (p *StateProcessor) Process(block *types.Block, statedb *state.StateDB, cfg
8585
// and uses the input parameters for its environment. It returns the receipt
8686
// for the transaction, gas used and an error if the transaction failed,
8787
// indicating the block was invalid.
88-
func ApplyTransaction(config *params.ChainConfig, bc *BlockChain, author *common.Address, gp *GasPool, statedb *state.StateDB, header *types.Header, tx *types.Transaction, usedGas *uint64, cfg vm.Config) (*types.Receipt, uint64, error) {
88+
func ApplyTransaction(config *params.ChainConfig, bc ChainContext, author *common.Address, gp *GasPool, statedb *state.StateDB, header *types.Header, tx *types.Transaction, usedGas *uint64, cfg vm.Config) (*types.Receipt, uint64, error) {
8989
msg, err := tx.AsMessage(types.MakeSigner(config, header.Number))
9090
if err != nil {
9191
return nil, 0, err

0 commit comments

Comments
 (0)