Skip to content

Commit

Permalink
Add step contract test template
Browse files Browse the repository at this point in the history
  • Loading branch information
pcw109550 committed Feb 14, 2024
1 parent db1a6af commit d706fbf
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions rvsol/test/Step.t.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
pragma solidity 0.8.15;

import {Test} from "forge-std/Test.sol";
import {Step} from "src/Step.sol";
import {PreimageOracle} from "@optimism/packages/contracts-bedrock/src/cannon/PreimageOracle.sol";

contract Step_Test is Test {
PreimageOracle internal oracle;
Step internal step;

function setUp() public {
oracle = new PreimageOracle(0, 0, 0);
step = new Step(oracle);
vm.store(address(step), 0x0, bytes32(abi.encode(address(oracle))));
vm.label(address(oracle), "PreimageOracle");
vm.label(address(step), "Step");
}
}

0 comments on commit d706fbf

Please sign in to comment.