diff --git a/packages/1155-contracts/foundry.toml b/packages/1155-contracts/foundry.toml index e69cfc703..f91822c2e 100644 --- a/packages/1155-contracts/foundry.toml +++ b/packages/1155-contracts/foundry.toml @@ -4,25 +4,15 @@ libs = ['_imagine', 'node_modules', 'script'] allow_paths = ["node_modules/@zoralabs/protocol-rewards"] optimizer = true optimizer_runs = 50 -out = 'out' -solc_version = '0.8.17' -src = 'src' via_ir = true - -[profile.optimized] -optimizer = true -optimizer_runs = 50 -out = 'out' -script = 'src' solc_version = '0.8.17' +out = 'out' src = 'src' -test = 'src' -via_ir = true -[profile.fast_compilation] -optimizer_runs = 50 +[profile.dev] +optimizer = false +optimizer_runs = 0 via_ir = false -solc_version = '0.8.17' [rpc_endpoints] goerli = "https://eth-goerli.g.alchemy.com/v2/${ALCHEMY_KEY}" diff --git a/packages/1155-contracts/package.json b/packages/1155-contracts/package.json index cf49acf77..75d5cef34 100644 --- a/packages/1155-contracts/package.json +++ b/packages/1155-contracts/package.json @@ -9,7 +9,7 @@ "type": "module", "scripts": { "test": "forge test", - "dev": "forge test --watch -vvv", + "dev": "FOUNDRY_PROFILE=dev forge test --watch -vvv", "test:fork": "forge test -vvv --match-test fork", "test-gas": "forge test --gas-report", "prettier:check": "prettier --check 'src/**/*.sol' 'test/**/*.sol' 'package/**/*.ts' 'wagmi.config.ts'", diff --git a/packages/protocol-rewards/foundry.toml b/packages/protocol-rewards/foundry.toml index 62d40400e..821d1fb21 100644 --- a/packages/protocol-rewards/foundry.toml +++ b/packages/protocol-rewards/foundry.toml @@ -10,15 +10,10 @@ script = 'script' src = 'src' via_ir = true -[profile.optimized] -auto_detect_solc = true -optimizer = true -optimizer_runs = 500000 -out = 'out' -script = 'src' -src = 'src' -test = 'src' -via_ir = true +[profile.dev] +optimizer = false +optimizer_runs = 0 +via_ir = false [fmt] bracket_spacing = true diff --git a/packages/protocol-rewards/package.json b/packages/protocol-rewards/package.json index 77d1279aa..f377b19dd 100644 --- a/packages/protocol-rewards/package.json +++ b/packages/protocol-rewards/package.json @@ -10,6 +10,7 @@ "scripts": { "build": "forge build", "build:sizes": "forge build --sizes", + "dev": "FOUNDRY_PROFILE=dev forge test --watch -vvv", "test": "forge test", "build:contracts": "forge build", "prettier:check": "prettier --check 'src/**/*.sol' 'test/**/*.sol' 'script/**/*.sol'",