From 6a575eda6fe1736923e3e6df261d4ed78ba32e08 Mon Sep 17 00:00:00 2001 From: rjl493456442 Date: Thu, 8 Sep 2022 14:06:06 +0800 Subject: [PATCH] eth/tracer: fix broken test (#25715) --- eth/tracers/api_test.go | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/eth/tracers/api_test.go b/eth/tracers/api_test.go index 414ba6fe9..346813ae2 100644 --- a/eth/tracers/api_test.go +++ b/eth/tracers/api_test.go @@ -638,11 +638,14 @@ func newStates(keys []common.Hash, vals []common.Hash) *map[common.Hash]common.H func TestTraceChain(t *testing.T) { // Initialize test accounts accounts := newAccounts(3) - genesis := &core.Genesis{Alloc: core.GenesisAlloc{ - accounts[0].addr: {Balance: big.NewInt(params.Ether)}, - accounts[1].addr: {Balance: big.NewInt(params.Ether)}, - accounts[2].addr: {Balance: big.NewInt(params.Ether)}, - }} + genesis := &core.Genesis{ + Config: params.TestChainConfig, + Alloc: core.GenesisAlloc{ + accounts[0].addr: {Balance: big.NewInt(params.Ether)}, + accounts[1].addr: {Balance: big.NewInt(params.Ether)}, + accounts[2].addr: {Balance: big.NewInt(params.Ether)}, + }, + } genBlocks := 50 signer := types.HomesteadSigner{}