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",