From 3f66443c081c8baf77c3b1c06434e305dacc846c Mon Sep 17 00:00:00 2001 From: Pascal Marco Caversaccio Date: Mon, 18 Mar 2024 18:12:09 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=81=20Upgrade=20Solidity=20Version=20t?= =?UTF-8?q?o=20`0.8.25`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pascal Marco Caversaccio --- .gas-snapshot | 2 +- contracts/src/Greeter.sol | 2 +- contracts/test/Greeter.t.sol | 2 +- foundry.toml | 2 +- hardhat.config.ts | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.gas-snapshot b/.gas-snapshot index ce75db4..83a4e7d 100644 --- a/.gas-snapshot +++ b/.gas-snapshot @@ -1 +1 @@ -GreeterTest:testCreateGreeter() (gas: 20666) \ No newline at end of file +GreeterTest:testCreateGreeter() (gas: 20855) \ No newline at end of file diff --git a/contracts/src/Greeter.sol b/contracts/src/Greeter.sol index 1ef79ca..403c935 100644 --- a/contracts/src/Greeter.sol +++ b/contracts/src/Greeter.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Unlicense -pragma solidity ^0.8.24; +pragma solidity ^0.8.25; contract Greeter { string private greeting; diff --git a/contracts/test/Greeter.t.sol b/contracts/test/Greeter.t.sol index 98bcefc..9cf7256 100644 --- a/contracts/test/Greeter.t.sol +++ b/contracts/test/Greeter.t.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Unlicense -pragma solidity ^0.8.24; +pragma solidity ^0.8.25; import {Greeter} from "../src/Greeter.sol"; import {Test} from "forge-std/Test.sol"; diff --git a/foundry.toml b/foundry.toml index cd5016e..aa74b5d 100644 --- a/foundry.toml +++ b/foundry.toml @@ -11,7 +11,7 @@ cache_path = 'cache' # where the cache force = false # whether to ignore the cache (clean build) evm_version = 'paris' # the evm version (by hardfork name) gas_reports = ['*'] # list of contracts to report gas of -solc_version = '0.8.24' # override for the solc version (setting this ignores `auto_detect_solc`) +solc_version = '0.8.25' # override for the solc version (setting this ignores `auto_detect_solc`) auto_detect_solc = true # enable auto-detection of the appropriate solc version to use offline = false # offline mode, if enabled, network access (downloading solc) is disallowed optimizer = true # enable or disable the solc optimizer diff --git a/hardhat.config.ts b/hardhat.config.ts index 60c5b9a..ca0ede3 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -76,7 +76,7 @@ const config: HardhatUserConfig = { solidity: { // Only use Solidity default versions `>=0.8.20` for EVM networks that support the opcode `PUSH0` // Otherwise, use the versions `<=0.8.19` - version: "0.8.24", + version: "0.8.25", settings: { optimizer: { enabled: true,