From 08b3c026b315f57a0189b9dd1f80cd70469a54a0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 4 Dec 2025 06:01:15 +0000 Subject: [PATCH 1/2] Bump solc from 0.8.30 to 0.8.31 Bumps [solc](https://github.com/ethereum/solc-js) from 0.8.30 to 0.8.31. - [Commits](https://github.com/ethereum/solc-js/compare/v0.8.30...v0.8.31) --- updated-dependencies: - dependency-name: solc dependency-version: 0.8.31 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index a2345c4bb..cf390ab4c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8130,9 +8130,9 @@ } }, "node_modules/solc": { - "version": "0.8.30", - "resolved": "https://registry.npmjs.org/solc/-/solc-0.8.30.tgz", - "integrity": "sha512-9Srk/gndtBmoUbg4CE6ypAzPQlElv8ntbnl6SigUBAzgXKn35v87sj04uZeoZWjtDkdzT0qKFcIo/wl63UMxdw==", + "version": "0.8.31", + "resolved": "https://registry.npmjs.org/solc/-/solc-0.8.31.tgz", + "integrity": "sha512-wpccgDgu/aE/rRcF2F/LeN+4knK0734XTcjppyaQOticjYd/Giq1AJE3XPQZKEViAsY3sNaFKl7QpMRYrK35vg==", "dev": true, "license": "MIT", "dependencies": { From c4d60bef8789e72d882a0a7fd52c76e9a7bfb8c7 Mon Sep 17 00:00:00 2001 From: Klaus Date: Thu, 4 Dec 2025 08:38:15 +0000 Subject: [PATCH 2/2] passing tests --- package-lock.json | 8 ++-- package.json | 2 +- tests/format/HexLiteral/HexLiteral.sol | 2 +- .../__snapshots__/format.test.js.snap | 8 ++-- .../ModifierInvocations.sol | 2 +- .../__snapshots__/format.test.js.snap | 4 +- tests/format/NumberLiteral/NumberLiteral.sol | 2 +- .../__snapshots__/format.test.js.snap | 4 +- tests/format/Parentheses/AddNoParentheses.sol | 2 +- .../Parentheses/BitAndNoParentheses.sol | 2 +- .../format/Parentheses/BitOrNoParentheses.sol | 2 +- .../Parentheses/BitXorNoParentheses.sol | 2 +- tests/format/Parentheses/DivNoParentheses.sol | 2 +- tests/format/Parentheses/ExpNoParentheses.sol | 2 +- .../format/Parentheses/LogicNoParentheses.sol | 2 +- tests/format/Parentheses/ModNoParentheses.sol | 2 +- tests/format/Parentheses/MulNoParentheses.sol | 2 +- .../Parentheses/ShiftLNoParentheses.sol | 2 +- .../Parentheses/ShiftRNoParentheses.sol | 2 +- tests/format/Parentheses/SubNoParentheses.sol | 2 +- .../__snapshots__/format.test.js.snap | 48 +++++++++---------- 21 files changed, 52 insertions(+), 52 deletions(-) diff --git a/package-lock.json b/package-lock.json index cf390ab4c..cd0371b5c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -37,7 +37,7 @@ "knip": "^5.71.0", "lines-and-columns": "^2.0.4", "prettier": "^3.7.4", - "solc": "^0.8.30", + "solc": "^0.8.31", "ts-loader": "^9.5.4", "ts-node": "^10.9.2", "typescript": "^5.9.3", @@ -3472,9 +3472,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001757", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001757.tgz", - "integrity": "sha512-r0nnL/I28Zi/yjk1el6ilj27tKcdjLsNqAOZr0yVjWPrSQyHgKI2INaEWw21bAQSv2LXRt1XuCS/GomNpWOxsQ==", + "version": "1.0.30001759", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001759.tgz", + "integrity": "sha512-Pzfx9fOKoKvevQf8oCXoyNRQ5QyxJj+3O0Rqx2V5oxT61KGx8+n6hV/IUyJeifUci2clnmmKVpvtiqRzgiWjSw==", "dev": true, "funding": [ { diff --git a/package.json b/package.json index 44dc8cf68..9545dd2cb 100644 --- a/package.json +++ b/package.json @@ -107,7 +107,7 @@ "knip": "^5.71.0", "lines-and-columns": "^2.0.4", "prettier": "^3.7.4", - "solc": "^0.8.30", + "solc": "^0.8.31", "ts-loader": "^9.5.4", "ts-node": "^10.9.2", "typescript": "^5.9.3", diff --git a/tests/format/HexLiteral/HexLiteral.sol b/tests/format/HexLiteral/HexLiteral.sol index a8960aed3..cf5b62fd8 100644 --- a/tests/format/HexLiteral/HexLiteral.sol +++ b/tests/format/HexLiteral/HexLiteral.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.30; +pragma solidity 0.8.31; contract HexLiteral { bytes8 hex1 = hex'DeadBeef'; diff --git a/tests/format/HexLiteral/__snapshots__/format.test.js.snap b/tests/format/HexLiteral/__snapshots__/format.test.js.snap index ef53dbcd5..6fec63250 100644 --- a/tests/format/HexLiteral/__snapshots__/format.test.js.snap +++ b/tests/format/HexLiteral/__snapshots__/format.test.js.snap @@ -8,7 +8,7 @@ singleQuote: false | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.30; +pragma solidity 0.8.31; contract HexLiteral { bytes8 hex1 = hex'DeadBeef'; @@ -17,7 +17,7 @@ contract HexLiteral { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.30; +pragma solidity 0.8.31; contract HexLiteral { bytes8 hex1 = hex"DeadBeef"; @@ -35,7 +35,7 @@ singleQuote: true | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.30; +pragma solidity 0.8.31; contract HexLiteral { bytes8 hex1 = hex'DeadBeef'; @@ -44,7 +44,7 @@ contract HexLiteral { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.30; +pragma solidity 0.8.31; contract HexLiteral { bytes8 hex1 = hex'DeadBeef'; diff --git a/tests/format/ModifierInvocations/ModifierInvocations.sol b/tests/format/ModifierInvocations/ModifierInvocations.sol index f2bbcf644..0863ef4ec 100644 --- a/tests/format/ModifierInvocations/ModifierInvocations.sol +++ b/tests/format/ModifierInvocations/ModifierInvocations.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.30; +pragma solidity 0.8.31; contract ModifierDefinitions { // We enforce the use of parentheses in modifiers without parameters. diff --git a/tests/format/ModifierInvocations/__snapshots__/format.test.js.snap b/tests/format/ModifierInvocations/__snapshots__/format.test.js.snap index bffe8ec3c..a1d08e2d5 100644 --- a/tests/format/ModifierInvocations/__snapshots__/format.test.js.snap +++ b/tests/format/ModifierInvocations/__snapshots__/format.test.js.snap @@ -7,7 +7,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.30; +pragma solidity 0.8.31; contract ModifierDefinitions { // We enforce the use of parentheses in modifiers without parameters. @@ -26,7 +26,7 @@ contract ModifierInvocations is ModifierDefinitions { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.30; +pragma solidity 0.8.31; contract ModifierDefinitions { // We enforce the use of parentheses in modifiers without parameters. diff --git a/tests/format/NumberLiteral/NumberLiteral.sol b/tests/format/NumberLiteral/NumberLiteral.sol index c27c91768..fe466bbe9 100644 --- a/tests/format/NumberLiteral/NumberLiteral.sol +++ b/tests/format/NumberLiteral/NumberLiteral.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.30; +pragma solidity 0.8.31; contract NumberLiteral { function numbers()public { diff --git a/tests/format/NumberLiteral/__snapshots__/format.test.js.snap b/tests/format/NumberLiteral/__snapshots__/format.test.js.snap index f7564ca9f..d481e71d1 100644 --- a/tests/format/NumberLiteral/__snapshots__/format.test.js.snap +++ b/tests/format/NumberLiteral/__snapshots__/format.test.js.snap @@ -7,7 +7,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.30; +pragma solidity 0.8.31; contract NumberLiteral { function numbers()public { @@ -22,7 +22,7 @@ contract NumberLiteral { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.30; +pragma solidity 0.8.31; contract NumberLiteral { function numbers() public { diff --git a/tests/format/Parentheses/AddNoParentheses.sol b/tests/format/Parentheses/AddNoParentheses.sol index eb33c1d5b..df4b3c352 100644 --- a/tests/format/Parentheses/AddNoParentheses.sol +++ b/tests/format/Parentheses/AddNoParentheses.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.30; +pragma solidity 0.8.31; contract AddNoParentheses { function addAdd(uint256 a, uint256 b, uint256 c) diff --git a/tests/format/Parentheses/BitAndNoParentheses.sol b/tests/format/Parentheses/BitAndNoParentheses.sol index 6cef2489a..49ec5b546 100644 --- a/tests/format/Parentheses/BitAndNoParentheses.sol +++ b/tests/format/Parentheses/BitAndNoParentheses.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.30; +pragma solidity 0.8.31; contract BitAndNoParentheses { function bitAndAdd(uint256 a, uint256 b, uint256 c) diff --git a/tests/format/Parentheses/BitOrNoParentheses.sol b/tests/format/Parentheses/BitOrNoParentheses.sol index 9f74ce0f5..25e0441cf 100644 --- a/tests/format/Parentheses/BitOrNoParentheses.sol +++ b/tests/format/Parentheses/BitOrNoParentheses.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.30; +pragma solidity 0.8.31; contract BitOrNoParentheses { function bitOrAdd(uint256 a, uint256 b, uint256 c) diff --git a/tests/format/Parentheses/BitXorNoParentheses.sol b/tests/format/Parentheses/BitXorNoParentheses.sol index 88ccb52b7..3a90f632a 100644 --- a/tests/format/Parentheses/BitXorNoParentheses.sol +++ b/tests/format/Parentheses/BitXorNoParentheses.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.30; +pragma solidity 0.8.31; contract BitXorNoParentheses { function bitXorAdd(uint256 a, uint256 b, uint256 c) diff --git a/tests/format/Parentheses/DivNoParentheses.sol b/tests/format/Parentheses/DivNoParentheses.sol index 7e57fbbbf..08930e46b 100644 --- a/tests/format/Parentheses/DivNoParentheses.sol +++ b/tests/format/Parentheses/DivNoParentheses.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.30; +pragma solidity 0.8.31; contract DivNoParentheses { function divAdd(uint256 a, uint256 b, uint256 c) diff --git a/tests/format/Parentheses/ExpNoParentheses.sol b/tests/format/Parentheses/ExpNoParentheses.sol index b9f97c11f..58c161ef5 100644 --- a/tests/format/Parentheses/ExpNoParentheses.sol +++ b/tests/format/Parentheses/ExpNoParentheses.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.30; +pragma solidity 0.8.31; contract ExpNoParentheses { function expAdd(uint256 a, uint256 b, uint256 c) diff --git a/tests/format/Parentheses/LogicNoParentheses.sol b/tests/format/Parentheses/LogicNoParentheses.sol index 7f744d2c2..e4210114f 100644 --- a/tests/format/Parentheses/LogicNoParentheses.sol +++ b/tests/format/Parentheses/LogicNoParentheses.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.30; +pragma solidity 0.8.31; contract LogicNoParentheses { function orOr(bool a, bool b, bool c) public pure returns (bool) { diff --git a/tests/format/Parentheses/ModNoParentheses.sol b/tests/format/Parentheses/ModNoParentheses.sol index d0b75479b..bd47f2f81 100644 --- a/tests/format/Parentheses/ModNoParentheses.sol +++ b/tests/format/Parentheses/ModNoParentheses.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.30; +pragma solidity 0.8.31; contract ModNoParentheses { function modAdd(uint256 a, uint256 b, uint256 c) diff --git a/tests/format/Parentheses/MulNoParentheses.sol b/tests/format/Parentheses/MulNoParentheses.sol index 6914fe152..689259a6c 100644 --- a/tests/format/Parentheses/MulNoParentheses.sol +++ b/tests/format/Parentheses/MulNoParentheses.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.30; +pragma solidity 0.8.31; contract MulNoParentheses { function mulAdd(uint256 a, uint256 b, uint256 c) diff --git a/tests/format/Parentheses/ShiftLNoParentheses.sol b/tests/format/Parentheses/ShiftLNoParentheses.sol index 55090ea46..4e0945bdd 100644 --- a/tests/format/Parentheses/ShiftLNoParentheses.sol +++ b/tests/format/Parentheses/ShiftLNoParentheses.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.30; +pragma solidity 0.8.31; contract ShiftLNoParentheses { function shiftLAdd(uint256 a, uint256 b, uint256 c) diff --git a/tests/format/Parentheses/ShiftRNoParentheses.sol b/tests/format/Parentheses/ShiftRNoParentheses.sol index 0e8777834..bffdaa1e3 100644 --- a/tests/format/Parentheses/ShiftRNoParentheses.sol +++ b/tests/format/Parentheses/ShiftRNoParentheses.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.30; +pragma solidity 0.8.31; contract ShiftRNoParentheses { function shiftRAdd(uint256 a, uint256 b, uint256 c) diff --git a/tests/format/Parentheses/SubNoParentheses.sol b/tests/format/Parentheses/SubNoParentheses.sol index 14d3d7544..7d20f921d 100644 --- a/tests/format/Parentheses/SubNoParentheses.sol +++ b/tests/format/Parentheses/SubNoParentheses.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.30; +pragma solidity 0.8.31; contract SubNoParentheses { function subAdd(uint256 a, uint256 b, uint256 c) diff --git a/tests/format/Parentheses/__snapshots__/format.test.js.snap b/tests/format/Parentheses/__snapshots__/format.test.js.snap index 6cd9cfafe..ec98d5cd9 100644 --- a/tests/format/Parentheses/__snapshots__/format.test.js.snap +++ b/tests/format/Parentheses/__snapshots__/format.test.js.snap @@ -7,7 +7,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.30; +pragma solidity 0.8.31; contract AddNoParentheses { function addAdd(uint256 a, uint256 b, uint256 c) @@ -101,7 +101,7 @@ contract AddNoParentheses { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.30; +pragma solidity 0.8.31; contract AddNoParentheses { function addAdd( @@ -203,7 +203,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.30; +pragma solidity 0.8.31; contract BitAndNoParentheses { function bitAndAdd(uint256 a, uint256 b, uint256 c) @@ -297,7 +297,7 @@ contract BitAndNoParentheses { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.30; +pragma solidity 0.8.31; contract BitAndNoParentheses { function bitAndAdd( @@ -399,7 +399,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.30; +pragma solidity 0.8.31; contract BitOrNoParentheses { function bitOrAdd(uint256 a, uint256 b, uint256 c) @@ -493,7 +493,7 @@ contract BitOrNoParentheses { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.30; +pragma solidity 0.8.31; contract BitOrNoParentheses { function bitOrAdd( @@ -595,7 +595,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.30; +pragma solidity 0.8.31; contract BitXorNoParentheses { function bitXorAdd(uint256 a, uint256 b, uint256 c) @@ -689,7 +689,7 @@ contract BitXorNoParentheses { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.30; +pragma solidity 0.8.31; contract BitXorNoParentheses { function bitXorAdd( @@ -791,7 +791,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.30; +pragma solidity 0.8.31; contract DivNoParentheses { function divAdd(uint256 a, uint256 b, uint256 c) @@ -885,7 +885,7 @@ contract DivNoParentheses { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.30; +pragma solidity 0.8.31; contract DivNoParentheses { function divAdd( @@ -1210,7 +1210,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.30; +pragma solidity 0.8.31; contract ExpNoParentheses { function expAdd(uint256 a, uint256 b, uint256 c) @@ -1304,7 +1304,7 @@ contract ExpNoParentheses { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.30; +pragma solidity 0.8.31; contract ExpNoParentheses { function expAdd( @@ -1406,7 +1406,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.30; +pragma solidity 0.8.31; contract LogicNoParentheses { function orOr(bool a, bool b, bool c) public pure returns (bool) { @@ -1444,7 +1444,7 @@ contract LogicNoParentheses { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.30; +pragma solidity 0.8.31; contract LogicNoParentheses { function orOr(bool a, bool b, bool c) public pure returns (bool) { @@ -1494,7 +1494,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.30; +pragma solidity 0.8.31; contract ModNoParentheses { function modAdd(uint256 a, uint256 b, uint256 c) @@ -1588,7 +1588,7 @@ contract ModNoParentheses { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.30; +pragma solidity 0.8.31; contract ModNoParentheses { function modAdd( @@ -1690,7 +1690,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.30; +pragma solidity 0.8.31; contract MulNoParentheses { function mulAdd(uint256 a, uint256 b, uint256 c) @@ -1784,7 +1784,7 @@ contract MulNoParentheses { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.30; +pragma solidity 0.8.31; contract MulNoParentheses { function mulAdd( @@ -2109,7 +2109,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.30; +pragma solidity 0.8.31; contract ShiftLNoParentheses { function shiftLAdd(uint256 a, uint256 b, uint256 c) @@ -2203,7 +2203,7 @@ contract ShiftLNoParentheses { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.30; +pragma solidity 0.8.31; contract ShiftLNoParentheses { function shiftLAdd( @@ -2305,7 +2305,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.30; +pragma solidity 0.8.31; contract ShiftRNoParentheses { function shiftRAdd(uint256 a, uint256 b, uint256 c) @@ -2399,7 +2399,7 @@ contract ShiftRNoParentheses { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.30; +pragma solidity 0.8.31; contract ShiftRNoParentheses { function shiftRAdd( @@ -2501,7 +2501,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.30; +pragma solidity 0.8.31; contract SubNoParentheses { function subAdd(uint256 a, uint256 b, uint256 c) @@ -2595,7 +2595,7 @@ contract SubNoParentheses { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.30; +pragma solidity 0.8.31; contract SubNoParentheses { function subAdd(