From 44cd7ee49b254607b3862b2948e578e1c53547ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Claudio=20Nale?= Date: Fri, 17 Feb 2023 13:48:56 -0300 Subject: [PATCH] Set `viaIR` flag in foundry.toml --- ethereum/foundry.toml | 1 + ethereum/package.json | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ethereum/foundry.toml b/ethereum/foundry.toml index 6c8f085..c91048c 100644 --- a/ethereum/foundry.toml +++ b/ethereum/foundry.toml @@ -2,6 +2,7 @@ solc_version = "0.8.17" optimizer = true optimizer_runs = 200 +via_ir = true extra_output = ["metadata", "storageLayout", "evm.deployedBytecode.immutableReferences"] src = "contracts" diff --git a/ethereum/package.json b/ethereum/package.json index a03f92d..318b49b 100644 --- a/ethereum/package.json +++ b/ethereum/package.json @@ -16,8 +16,8 @@ "ts-node": "^10.9.1" }, "scripts": { - "build": "forge build -o build --via-ir", - "unit-test": "forge test -vvvvv --via-ir", + "build": "forge build -o build", + "unit-test": "forge test -vvvvv", "integration-test": "bash shell-scripts/run_integration_tests.sh", "typechain": "bash ../sdk/scripts/make_ethers_types.sh", "flatten": "mkdir -p node_modules/@poanet/solidity-flattener/contracts && cp -r contracts/* node_modules/@poanet/solidity-flattener/contracts/ && poa-solidity-flattener",