From a9522ae50b5c502f14d3e8d18d1656bc5082b90a Mon Sep 17 00:00:00 2001 From: Pascal Marco Caversaccio Date: Wed, 13 Dec 2023 12:09:19 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20=20Set=20`viaIR`=20explici?= =?UTF-8?q?tely=20to=20`false`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pascal Marco Caversaccio --- foundry.toml | 1 + hardhat.config.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/foundry.toml b/foundry.toml index d29bf7a7..91d9a4e5 100644 --- a/foundry.toml +++ b/foundry.toml @@ -10,6 +10,7 @@ solc_version = '0.8.23' # override for the s evm_version = 'paris' # set the EVM target version (prevent using the `PUSH0` opcode) optimizer = true # enable the solc optimiser optimizer_runs = 10_000_000 # the number of optimiser runs +via_ir = false # disable compilation pipeline to go through the Yul intermediate representation verbosity = 3 # the verbosity of tests fs_permissions = [{ access = "read-write", path = "./"}] # set read-write access to project root bytecode_hash = 'none' # remove the metadata hash from the bytecode diff --git a/hardhat.config.ts b/hardhat.config.ts index 2cfe4bfa..80037e11 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -38,6 +38,7 @@ const config: HardhatUserConfig = { runs: 10_000_000, }, evmVersion: "paris", // Prevent using the `PUSH0` opcode + viaIR: false, // Disable compilation pipeline to go through the Yul intermediate representation metadata: { bytecodeHash: "none", // Remove the metadata hash from the bytecode },