Skip to content

Commit 6a575ed

Browse files
authored
eth/tracer: fix broken test (#25715)
1 parent b1f6dcc commit 6a575ed

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

eth/tracers/api_test.go

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -638,11 +638,14 @@ func newStates(keys []common.Hash, vals []common.Hash) *map[common.Hash]common.H
638638
func TestTraceChain(t *testing.T) {
639639
// Initialize test accounts
640640
accounts := newAccounts(3)
641-
genesis := &core.Genesis{Alloc: core.GenesisAlloc{
642-
accounts[0].addr: {Balance: big.NewInt(params.Ether)},
643-
accounts[1].addr: {Balance: big.NewInt(params.Ether)},
644-
accounts[2].addr: {Balance: big.NewInt(params.Ether)},
645-
}}
641+
genesis := &core.Genesis{
642+
Config: params.TestChainConfig,
643+
Alloc: core.GenesisAlloc{
644+
accounts[0].addr: {Balance: big.NewInt(params.Ether)},
645+
accounts[1].addr: {Balance: big.NewInt(params.Ether)},
646+
accounts[2].addr: {Balance: big.NewInt(params.Ether)},
647+
},
648+
}
646649
genBlocks := 50
647650
signer := types.HomesteadSigner{}
648651

0 commit comments

Comments
 (0)