Skip to content

Commit

Permalink
✅ add forking tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Sabnock01 committed Nov 19, 2023
1 parent f846116 commit 1ba3f8b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,5 @@ jobs:
- name: Check build sizes
run: forge build --sizes

- name: Check gas snapshots
run: forge snapshot --check

- name: Run tests
run: forge test -vvv
7 changes: 4 additions & 3 deletions script/deploy/v0.0.2/DeployBase.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ contract DeployBase is Script {
type(FlagRenderer).creationCode
));

flagRenderer = FlagRenderer(flagRendererAddress);

// Deploy AuthorshipToken
create2Factory.call(abi.encodeWithSignature(
"safeCreate2(bytes32,bytes)",
Expand All @@ -128,6 +130,8 @@ contract DeployBase is Script {
)
));

authorshipToken = AuthorshipToken(authorshipTokenAddress);

// Deploy Curta
curta = new Curta(
AuthorshipToken(authorshipTokenAddress),
Expand All @@ -143,9 +147,6 @@ contract DeployBase is Script {
));

vm.stopBroadcast();

flagRenderer = FlagRenderer(flagRendererAddress);
authorshipToken = AuthorshipToken(authorshipTokenAddress);
}

function _printInitcodeHashes(address[] memory initialAuthors) internal view {
Expand Down
2 changes: 1 addition & 1 deletion test/deploy/DeployBaseGoerli.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ contract DeployBaseGoerliTest is Test {
// -------------------------------------------------------------------------

function setUp() public {
vm.deal(vm.addr(vm.envUint("DEPLOYER_PRIVATE_KEY")), type(uint64).max);
vm.createSelectFork(base_mainnet);

deployBaseGoerli = new DeployBaseGoerli();
deployBaseGoerli.run();
Expand Down

0 comments on commit 1ba3f8b

Please sign in to comment.