-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
83 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity >=0.7.0 <0.9.0; | ||
|
||
import { PhylaxBase } from "../src/PhylaxBase.sol"; | ||
import { console } from "forge-std/console.sol"; | ||
import {PhylaxBase} from "../src/PhylaxBase.sol"; | ||
import {console} from "forge-std/console.sol"; | ||
|
||
contract PhylaxBaseTest is PhylaxBase { | ||
uint256 sepolia; | ||
uint256 sepolia; | ||
|
||
function setUp() public { | ||
assert(address(ph) == address(0)); | ||
sepolia = enableChain("sepolia"); | ||
} | ||
function setUp() public { | ||
assert(address(ph) == address(0)); | ||
sepolia = enableChain("sepolia"); | ||
} | ||
|
||
function test_modifierForks() public chain(sepolia) { | ||
assert(block.number != 0); | ||
} | ||
function test_modifierForks() public chain(sepolia) { | ||
assert(block.number != 0); | ||
} | ||
|
||
function test_phylaxContractIsSetup() public view { | ||
assert(address(ph) != address(0)); | ||
} | ||
function test_phylaxContractIsSetup() public view { | ||
assert(address(ph) != address(0)); | ||
} | ||
|
||
function test_chainsArrayCorrect() public view { | ||
assert($activeChains.length == 1); | ||
assert($activeChains[0] == sepolia); | ||
} | ||
function test_chainsArrayCorrect() public view { | ||
assert($activeChains.length == 1); | ||
assert($activeChains[0] == sepolia); | ||
} | ||
|
||
function test_exportNotRevert() public { | ||
ph.export("test_key", "test_value"); | ||
} | ||
function test_exportNotRevert() public { | ||
ph.export("test_key", "test_value"); | ||
} | ||
} |