From 60ec57fd1253bdf4d4cff3d1d18176737ea9c19a Mon Sep 17 00:00:00 2001 From: Francis Li Date: Wed, 4 Dec 2024 12:13:20 -0800 Subject: [PATCH] Disable via-ir in templates (#228) --- setup-templates/template-generic/foundry.toml | 8 ++++---- setup-templates/template-incident/foundry.toml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/setup-templates/template-generic/foundry.toml b/setup-templates/template-generic/foundry.toml index 0be0575a..14499ab0 100644 --- a/setup-templates/template-generic/foundry.toml +++ b/setup-templates/template-generic/foundry.toml @@ -3,18 +3,18 @@ src = 'src' out = 'out' libs = ['lib'] broadcast = 'records' -fs_permissions = [ {access = "read-write", path = "./"} ] +fs_permissions = [{ access = "read-write", path = "./" }] optimizer = true optimizer_runs = 999999 solc_version = "0.8.15" -via-ir = true +via-ir = false remappings = [ '@eth-optimism-bedrock/=lib/optimism/packages/contracts-bedrock/', '@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts', '@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts', '@rari-capital/solmate/=lib/solmate/', '@base-contracts/=lib/base-contracts', - 'solady/=lib/solady/src/' + 'solady/=lib/solady/src/', ] -# See more config options https://github.com/foundry-rs/foundry/tree/master/config \ No newline at end of file +# See more config options https://github.com/foundry-rs/foundry/tree/master/config diff --git a/setup-templates/template-incident/foundry.toml b/setup-templates/template-incident/foundry.toml index 0be0575a..14499ab0 100644 --- a/setup-templates/template-incident/foundry.toml +++ b/setup-templates/template-incident/foundry.toml @@ -3,18 +3,18 @@ src = 'src' out = 'out' libs = ['lib'] broadcast = 'records' -fs_permissions = [ {access = "read-write", path = "./"} ] +fs_permissions = [{ access = "read-write", path = "./" }] optimizer = true optimizer_runs = 999999 solc_version = "0.8.15" -via-ir = true +via-ir = false remappings = [ '@eth-optimism-bedrock/=lib/optimism/packages/contracts-bedrock/', '@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts', '@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts', '@rari-capital/solmate/=lib/solmate/', '@base-contracts/=lib/base-contracts', - 'solady/=lib/solady/src/' + 'solady/=lib/solady/src/', ] -# See more config options https://github.com/foundry-rs/foundry/tree/master/config \ No newline at end of file +# See more config options https://github.com/foundry-rs/foundry/tree/master/config