From df693a8cf21a39d476fd8a8a3d2ead76e7125461 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleksandar=20Marinkovi=C4=87?= Date: Thu, 7 Mar 2024 11:36:31 +0100 Subject: [PATCH] feat: use .env file for scripts (#1) --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9dead83..a916671 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "devnet": "anvil", "commitlint": "commitlint --edit", "deploy-local": "forge script scripts/Deploy.s.sol --rpc-url http://localhost:8545 --private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 --broadcast", - "deploy-public": "forge script scripts/Deploy.s.sol --chain-id $CHAIN_ID --rpc-url $RPC_URL --private-key $PRIVATE_KEY --broadcast" + "deploy-public": "export $(cat .env | grep -v \\# | xargs) && forge script scripts/Deploy.s.sol --chain-id $CHAIN_ID --rpc-url $RPC_URL --private-key $PRIVATE_KEY --broadcast" }, "commitlint": { "extends": [