Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
ratankaliani committed Aug 30, 2024
1 parent 6fd4e0c commit 4ef5b35
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions contracts/test/ZKL2OutputOracle.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -42,25 +42,6 @@ contract ZKL2OutputOracleTest is Test, Utils {
l2oo.proposeL2Output(claimedOutputRoot, claimedL2BlockNum, L1_HEAD, L1_BLOCK_NUM, proof);
}

// function testZKL2OOFreshDeployment() public {
// l2oo = ZKL2OutputOracle(deployWithConfig(config, STARTING_OUTPUT_ROOT, STARTING_TIMESTAMP));
// vm.startPrank(l2oo.PROPOSER());

// // fails if block hash hasn't been checkpointed
// vm.expectRevert();
// l2oo.proposeL2Output(claimedOutputRoot, claimedL2BlockNum, L1_HEAD, L1_BLOCK_NUM, proof);

// // set block hash
// vm.setBlockhash(L1_BLOCK_NUM, L1_HEAD);
// l2oo.checkpointBlockHash(L1_BLOCK_NUM, L1_HEAD);
// vm.warp(block.timestamp * 2);

// // succeeds after
// l2oo.proposeL2Output(claimedOutputRoot, claimedL2BlockNum, L1_HEAD, L1_BLOCK_NUM, proof);

// assertEq(l2oo.getL2Output(1).outputRoot, claimedOutputRoot);
// }

function testZKL2OOFailsWithWrongParams() public {
l2oo = ZKL2OutputOracle(deployWithConfig(config, STARTING_OUTPUT_ROOT, STARTING_TIMESTAMP));

Expand Down

0 comments on commit 4ef5b35

Please sign in to comment.