Skip to content

Commit a8138fa

Browse files
authored
Merge pull request #86 from 0xPolygon/avalkov/Add-missing-HFs
Add missing HFs
2 parents 5dcbcc7 + 49f735d commit a8138fa

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

genesis-template.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,15 @@
1515
"londonBlock": 0,
1616
"shanghaiBlock": 0,
1717
"cancunBlock": 0,
18+
"pragueBlock": 128,
1819
"bor": {
1920
"jaipurBlock": 0,
2021
"delhiBlock": 0,
2122
"indoreBlock": 0,
2223
"ahmedabadBlock": 0,
24+
"bhilaiBlock": 128,
25+
"rioBlock": 128,
26+
"madhugiriBlock": 128,
2327
"stateSyncConfirmationDelay": {
2428
"0": 128
2529
},

test/StateReceiver.t.sol

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ contract StateReceiverTest is Test {
166166
}
167167

168168
function test_shouldNotReplayZeroLeaf(bytes32 root, bytes32[16] memory proof) public {
169+
vm.assume(root != bytes32(0));
169170
vm.prank(rootSetter);
170171
stateReceiver.setRootAndLeafCount(root, 1);
171172

@@ -174,13 +175,14 @@ contract StateReceiverTest is Test {
174175
}
175176

176177
function test_shouldNotReplayInvalidProof(bytes32 root, bytes32[16] memory proof, bytes memory stateData) public {
178+
vm.assume(root != bytes32(0));
177179
vm.prank(rootSetter);
178180
stateReceiver.setRootAndLeafCount(root, 1);
179181

180182
vm.expectRevert("!proof");
181183
stateReceiver.replayHistoricFailedStateSync(
182184
proof,
183-
vm.randomUint(0, 2 ** 16),
185+
vm.randomUint(0, 2 ** 16 - 1),
184186
vm.randomUint(),
185187
vm.randomAddress(),
186188
stateData

0 commit comments

Comments
 (0)