File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -12,9 +12,12 @@ PRIVATE_KEY?=0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d
1212deploy-all : # # 🚀 Deploy all contracts
1313 cd script && forge script DeployAll.s.sol --private-key $(PRIVATE_KEY ) --rpc-url $(RPC_URL ) --broadcast
1414
15+ CONFIG? =example
1516deploy-token : # # 🚀 Deploy the token contract
1617 cd script && \
1718 forge script DeployAlignedToken.s.sol \
19+ --sig " run(string)" \
20+ $(CONFIG )
1821 --private-key $(PRIVATE_KEY ) \
1922 --rpc-url $(RPC_URL ) \
2023 --broadcast
Original file line number Diff line number Diff line change @@ -9,9 +9,14 @@ import "forge-std/Script.sol";
99import {Utils} from "./Utils.sol " ;
1010
1111contract DeployAlignedToken is Script {
12- function run () public {
12+ function run (string memory config ) public {
1313 string memory root = vm.projectRoot ();
14- string memory path = string .concat (root, "/script-config/config.json " );
14+ string memory path = string .concat (
15+ root,
16+ "/script-config/config " ,
17+ config,
18+ ".json "
19+ );
1520 string memory config_json = vm.readFile (path);
1621
1722 address _safe = stdJson.readAddress (config_json, ".safe " );
You can’t perform that action at this time.
0 commit comments