@@ -72,8 +72,8 @@ func generateMergeChain(n int, merged bool) (*core.Genesis, []*types.Block) {
72
72
genesis := & core.Genesis {
73
73
Config : & config ,
74
74
Alloc : types.GenesisAlloc {
75
- testAddr : {Balance : testBalance },
76
- params .BeaconRootsStorageAddress : {Balance : common .Big0 , Code : common .Hex2Bytes ("3373fffffffffffffffffffffffffffffffffffffffe14604457602036146024575f5ffd5b620180005f350680545f35146037575f5ffd5b6201800001545f5260205ff35b6201800042064281555f359062018000015500" )},
75
+ testAddr : {Balance : testBalance },
76
+ params .BeaconRootsAddress : {Balance : common .Big0 , Code : common .Hex2Bytes ("3373fffffffffffffffffffffffffffffffffffffffe14604457602036146024575f5ffd5b620180005f350680545f35146037575f5ffd5b6201800001545f5260205ff35b6201800042064281555f359062018000015500" )},
77
77
},
78
78
ExtraData : []byte ("test genesis" ),
79
79
Timestamp : 9000 ,
@@ -1650,10 +1650,10 @@ func TestParentBeaconBlockRoot(t *testing.T) {
1650
1650
rootIdx = common .BigToHash (big .NewInt (int64 ((execData .ExecutionPayload .Timestamp % 98304 ) + 98304 )))
1651
1651
)
1652
1652
1653
- if num := db .GetState (params .BeaconRootsStorageAddress , timeIdx ); num != timeIdx {
1653
+ if num := db .GetState (params .BeaconRootsAddress , timeIdx ); num != timeIdx {
1654
1654
t .Fatalf ("incorrect number stored: want %s, got %s" , timeIdx , num )
1655
1655
}
1656
- if root := db .GetState (params .BeaconRootsStorageAddress , rootIdx ); root != * blockParams .BeaconRoot {
1656
+ if root := db .GetState (params .BeaconRootsAddress , rootIdx ); root != * blockParams .BeaconRoot {
1657
1657
t .Fatalf ("incorrect root stored: want %s, got %s" , * blockParams .BeaconRoot , root )
1658
1658
}
1659
1659
}
0 commit comments