diff --git a/core/chain_makers.go b/core/chain_makers.go index d106f4e212..9649002577 100644 --- a/core/chain_makers.go +++ b/core/chain_makers.go @@ -96,7 +96,7 @@ func (b *BlockGen) AddTxWithChain(bc *BlockChain, tx *types.Transaction) { b.SetCoinbase(common.Address{}) } b.statedb.Prepare(tx.Hash(), common.Hash{}, len(b.txs)) - blockContext := NewBlockContext(b.header, bc, nil) + blockContext := NewBlockContext(b.header, bc, &common.Address{}) signer := types.MakeSigner(b.config, b.header.Number) receipt, _, err := ApplyTransaction(b.config, signer, blockContext, b.gasPool, b.statedb, b.header, tx, &b.header.GasUsed, vm.Config{}) if err != nil {