Skip to content

Commit

Permalink
🔁 Upgrade to Solidity Version to 0.8.23
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Marco Caversaccio <[email protected]>
  • Loading branch information
pcaversaccio committed Nov 9, 2023
1 parent 03ad07b commit ef853f2
Show file tree
Hide file tree
Showing 8 changed files with 99 additions and 99 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
update :; forge update

# install proper solc version
solc :; nix-env -f https://github.com/dapphub/dapptools/archive/master.tar.gz -iA solc-static-versions.solc_0_8_22
solc :; nix-env -f https://github.com/dapphub/dapptools/archive/master.tar.gz -iA solc-static-versions.solc_0_8_23

# build & test
build :; forge build
Expand Down
2 changes: 1 addition & 1 deletion contracts/lib/forge-std
Submodule forge-std updated 2 files
+3 −0 src/Vm.sol
+1 −1 test/Vm.t.sol
2 changes: 1 addition & 1 deletion contracts/src/Greeter.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.22;
pragma solidity ^0.8.23;

contract Greeter {
string private greeting;
Expand Down
2 changes: 1 addition & 1 deletion contracts/test/Greeter.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.22;
pragma solidity ^0.8.23;

import {Greeter} from "../src/Greeter.sol";
import {Test} from "forge-std/Test.sol";
Expand Down
2 changes: 1 addition & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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.22' # override for the solc version (setting this ignores `auto_detect_solc`)
solc_version = '0.8.23' # 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
Expand Down
2 changes: 1 addition & 1 deletion hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,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.22",
version: "0.8.23",
settings: {
optimizer: {
enabled: true,
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@
"@truffle/dashboard-hardhat-plugin": "^0.2.15",
"@typechain/ethers-v6": "^0.4.3",
"@typechain/hardhat": "^8.0.3",
"@types/chai": "^4.3.9",
"@types/mocha": "^10.0.3",
"@types/node": "^20.8.10",
"@types/chai": "^4.3.10",
"@types/mocha": "^10.0.4",
"@types/node": "^20.9.0",
"@typescript-eslint/eslint-plugin": "^6.10.0",
"@typescript-eslint/parser": "^6.10.0",
"chai": "^4.3.10",
Expand All @@ -148,7 +148,7 @@
"hardhat-contract-sizer": "^2.10.0",
"hardhat-gas-reporter": "^1.0.9",
"prettier": "^3.0.3",
"prettier-plugin-solidity": "^1.1.3",
"prettier-plugin-solidity": "^1.2.0",
"solhint": "^4.0.0",
"solidity-coverage": "^0.8.5",
"ts-node": "^10.9.1",
Expand Down
Loading

0 comments on commit ef853f2

Please sign in to comment.