From 054c528a8945cba6a0ff494f931c7b77fc619dbc Mon Sep 17 00:00:00 2001 From: Shuhui Luo <107524008+shuhuiluo@users.noreply.github.com> Date: Fri, 13 Sep 2024 01:30:14 -0400 Subject: [PATCH] perf: upgrade Solidity version and disable CBOR metadata (#10) Updated the Solidity compiler version to 0.8.26 in the Hardhat configuration. Disabled the appendCBOR metadata option in both Hardhat and Foundry settings to streamline metadata handling. --- foundry.toml | 1 + hardhat.config.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/foundry.toml b/foundry.toml index 7a78747..0679722 100644 --- a/foundry.toml +++ b/foundry.toml @@ -8,6 +8,7 @@ cache = true optimizer = true optimizer_runs = 4294967295 bytecode_hash = 'none' +cbor_metadata = false sparse_mode = true ignored_error_codes = [3860, 5574] diff --git a/hardhat.config.ts b/hardhat.config.ts index 66b8d64..78cf4b0 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -9,7 +9,7 @@ import { SolidityUserConfig } from "hardhat/types/config"; */ const config: HardhatUserConfig = { solidity: { - version: "0.8.22", + version: "0.8.26", settings: { optimizer: { enabled: true, @@ -18,6 +18,7 @@ const config: HardhatUserConfig = { viaIR: true, evmVersion: "paris", metadata: { + appendCBOR: false, bytecodeHash: "none", }, },