@@ -12,9 +12,9 @@ const [blockData] = blocks
12
12
13
13
const parentBeaconBlockRoot = '0x42942949c4ed512cd85c2cb54ca88591338cbb0564d3a2bea7961a639ef29d64'
14
14
const validForkChoiceState = {
15
- headBlockHash : '0x586b459d3fa589fa0e30477ef0e9d11794629b8b914e00b2703c0615a33ab9ed ' ,
16
- safeBlockHash : '0x586b459d3fa589fa0e30477ef0e9d11794629b8b914e00b2703c0615a33ab9ed ' ,
17
- finalizedBlockHash : '0x586b459d3fa589fa0e30477ef0e9d11794629b8b914e00b2703c0615a33ab9ed ' ,
15
+ headBlockHash : '0x3ff9144b3f0818580798b0a9ff5cedc1350ff62f46ec99b098344e2864be1e47 ' ,
16
+ safeBlockHash : '0x3ff9144b3f0818580798b0a9ff5cedc1350ff62f46ec99b098344e2864be1e47 ' ,
17
+ finalizedBlockHash : '0x3ff9144b3f0818580798b0a9ff5cedc1350ff62f46ec99b098344e2864be1e47 ' ,
18
18
}
19
19
const validPayloadAttributes = {
20
20
timestamp : '0x64ba84fd' ,
@@ -50,6 +50,11 @@ describe(`${method}: call with executionPayloadV4`, () => {
50
50
const { pragueJson, pragueTime } = readyPragueGenesis ( genesisJSON )
51
51
const { service, server } = await setupChain ( pragueJson , 'post-merge' , { engine : true } )
52
52
const rpc = getRpcClient ( server )
53
+ let res
54
+
55
+ res = await rpc . request ( `eth_getBlockByNumber` , [ '0x0' , false ] )
56
+ assert . equal ( res . result . hash , validForkChoiceState . headBlockHash )
57
+
53
58
const validBlock = {
54
59
...blockData ,
55
60
timestamp : bigIntToHex ( BigInt ( pragueTime ) ) ,
@@ -58,11 +63,10 @@ describe(`${method}: call with executionPayloadV4`, () => {
58
63
excessBlobGas : '0x0' ,
59
64
depositRequests : [ ] ,
60
65
withdrawalRequests : [ ] ,
61
- parentHash : '0x586b459d3fa589fa0e30477ef0e9d11794629b8b914e00b2703c0615a33ab9ed ' ,
62
- stateRoot : '0x76869ec89f1bc786e10a03ecf4a3f9815ec9dddecb372bd0eff51fe75d0d921e ' ,
63
- blockHash : '0x34ec8335d47f4ba04a4c1f75f414b85b5e5200d60a6a639b6fc71ce90bcaaee2 ' ,
66
+ parentHash : '0x3ff9144b3f0818580798b0a9ff5cedc1350ff62f46ec99b098344e2864be1e47 ' ,
67
+ stateRoot : '0xd207043769091b6cdc91621f12bf2800b0b4643aeff09118fca52543c7a8ff03 ' ,
68
+ blockHash : '0xf9b4285204630ca183fec0a9a282cb68021af1aa9f3ab5f10d6b9ea8a7a3d4b6 ' ,
64
69
}
65
- let res
66
70
67
71
const oldMethods = [ 'engine_newPayloadV1' , 'engine_newPayloadV2' , 'engine_newPayloadV3' ]
68
72
const expectedErrors = [
@@ -129,10 +133,10 @@ describe(`${method}: call with executionPayloadV4`, () => {
129
133
const electraGenesisContracts = {
130
134
// sender corresponding to the priv key 0x9c9996335451aab4fc4eac58e31a8c300e095cdbcee532d53d09280e83360355
131
135
'0x610adc49ecd66cbf176a8247ebd59096c031bd9f' : { balance : '0x6d6172697573766477000000' } ,
132
- '0x25a219378dad9b3503c8268c9ca836a52427a4fb ' : {
136
+ '0x0aae40965e6800cd9b1f4b05ff21581047e3f91e ' : {
133
137
balance : '0' ,
134
138
nonce : '1' ,
135
- code : '0x60203611603157600143035f35116029575f356120000143116029576120005f3506545f5260205ff35b5f5f5260205ff35b5f5ffd00 ' ,
139
+ code : '0x3373fffffffffffffffffffffffffffffffffffffffe1460575767ffffffffffffffff5f3511605357600143035f3511604b575f35612000014311604b57611fff5f3516545f5260205ff35b5f5f5260205ff35b5f5ffd5b5f35611fff60014303165500 ' ,
136
140
} ,
137
141
'0x00A3ca265EBcb825B45F985A16CEFB49958cE017' : {
138
142
balance : '0' ,
0 commit comments