diff --git a/core/bintrie_witness_test.go b/core/bintrie_witness_test.go index 750153c1ce..c2db82fcad 100644 --- a/core/bintrie_witness_test.go +++ b/core/bintrie_witness_test.go @@ -199,7 +199,7 @@ func TestProcessParentBlockHash(t *testing.T) { if isVerkle { chainConfig = testVerkleChainConfig } - vmContext := NewEVMBlockContext(header, nil, new(common.Address)) + vmContext := NewEVMBlockContext(header, &BlockChain{chainConfig: chainConfig}, new(common.Address)) evm := vm.NewEVM(vmContext, statedb, chainConfig, vm.Config{}) ProcessParentBlockHash(header.ParentHash, evm) }