-
Notifications
You must be signed in to change notification settings - Fork 370
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: local deploy workflow -> test
- Loading branch information
1 parent
f600f8c
commit 2fe1bb6
Showing
2 changed files
with
25 additions
and
38 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity ^0.8.13; | ||
|
||
import {Test, console2} from "forge-std/Test.sol"; | ||
import {DeployFromScratch} from "script/deploy/local/Deploy_From_Scratch.s.sol"; | ||
|
||
// NOTE: Run the following command to deploy from scratch in an anvil instance: | ||
// RUST_LOG=forge,foundry=trace forge script script/deploy/local/Deploy_From_Scratch.s.sol --slow \ | ||
// --rpc-url http://127.0.0.1:8545 \ | ||
// --private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 \ | ||
// --broadcast \ | ||
// --sig "run(string memory configFile)" \ | ||
// -- local/deploy_from_scratch.anvil.config.json | ||
contract DeployTest is Test { | ||
DeployFromScratch public deployer; | ||
|
||
function setUp() public { | ||
deployer = new DeployFromScratch(); | ||
} | ||
|
||
function test_DeployFromScratch() public { | ||
// Deploy, expecting no revert. | ||
deployer.run("local/deploy_from_scratch.anvil.config.json"); | ||
} | ||
} |