From cac6e827428cb236594bc1a09f77bf82ae52d244 Mon Sep 17 00:00:00 2001 From: "A.L." Date: Wed, 18 Sep 2024 17:29:02 +0100 Subject: [PATCH] wip: making script work with testnet --- foundry.toml | 3 +++ package.json | 1 + 2 files changed, 4 insertions(+) diff --git a/foundry.toml b/foundry.toml index 2df2a55..2b85519 100644 --- a/foundry.toml +++ b/foundry.toml @@ -32,3 +32,6 @@ int_types = "long" [profile.script] optimizer_runs = 1_000_000 + +[rpc_endpoints] +sepolia = "https://1rpc.io/sepolia" diff --git a/package.json b/package.json index 6f3fa5e..d296299 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ "ci": "forge build --force && npm run lint:check && npm run test:unit && npm run gas:check && npm run slither:check", "clean": "forge clean", "coverage": "export FOUNDRY_PROFILE=coverage && forge coverage --report lcov", + "deploy:testnet": "forge script script/Deploy.s.sol --target-contract Deploy --sig \"run()\" --fork-url \"https://1rpc.io/sepolia\" --broadcast -vvvv", "eslint": "npm run eslint:check", "eslint:check": "eslint scripts", "eslint:fix": "eslint scripts --fix",