Skip to content

Commit 6a7c382

Browse files
committed
test: pin invalid-proof test to a Sepolia block
1 parent a6fbf03 commit 6a7c382

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎test/EspressoNitroTEEVerifier.t.sol‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ contract EspressoNitroTEEVerifierTest is Test {
3434
vm.createSelectFork(
3535
"https://rpc.ankr.com/eth_sepolia/b4eb7cd43eb25061e06a5d07ecd191433c3a28988f14dd9bfb6be6a122355023"
3636
);
37+
_setUpVerifiers();
38+
}
39+
40+
function _setUpVerifiers() internal {
3741
espressoTEEVerifier = _deployTEEVerifierWithPlaceholders();
3842
espressoNitroTEEVerifier = _deployNitro(address(espressoTEEVerifier));
3943
vm.startPrank(adminTEE);
@@ -107,6 +111,10 @@ contract EspressoNitroTEEVerifierTest is Test {
107111
* Test invalid proof reverts the transaction
108112
*/
109113
function testInvalidProof() public {
114+
// Pin the external verifier state to the fixture's source block.
115+
vm.rollFork(12_119_308);
116+
_setUpVerifiers();
117+
110118
vm.startPrank(adminTEE);
111119
vm.warp(1_794_492_072);
112120
string memory proofPath = "/test/configs/invalid_proof.json";

0 commit comments

Comments
 (0)