Skip to content

Commit d3e1379

Browse files
author
ilitteri
committed
Fix config path
1 parent 7ea5558 commit d3e1379

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

claim_contracts/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,12 @@ PRIVATE_KEY?=0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d
1212
deploy-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
1516
deploy-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

claim_contracts/script/DeployAlignedToken.s.sol

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,14 @@ import "forge-std/Script.sol";
99
import {Utils} from "./Utils.sol";
1010

1111
contract 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");

0 commit comments

Comments
 (0)