From ff7f5d7e8c75f47b0b05b9bf566fb4a0b2f0c0ef Mon Sep 17 00:00:00 2001 From: Victor Snyder-Graf Date: Tue, 7 Jan 2025 14:36:49 -0800 Subject: [PATCH] WEB3-268: Update foundry.toml with suggested changes (#371) --- contracts/foundry.toml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/contracts/foundry.toml b/contracts/foundry.toml index d7c876ab..db2d3191 100644 --- a/contracts/foundry.toml +++ b/contracts/foundry.toml @@ -3,8 +3,26 @@ src = "src" out = "out" test = "test" libs = ["../lib"] + +# Allow use of the ffi cheatcode in tests. ffi = true +# Compiler options + +via_ir = true +evm_version = 'cancun' +optimizer_runs = 10000 +solc_version = "0.8.26" +# Do not append metadata hash to bytecode. We do not currently use it, and omitting it results in +# more stable build artifacts, which is important since we check the bytecode into git. +# For information about Solidity metadata, see https://docs.soliditylang.org/en/latest/metadata.html +bytecode_hash = "none" + +[fmt] +line_length = 120 +tab_width = 4 +quote_style = "double" + # Profile used to run deployment tests, which check the correctness of contracts as deployed. # TIP: You can select this profile by setting env var FOUNDRY_PROFILE=deployment-test [profile.deployment-test]