From d79d9200660bf378e5f876fb85f8656d9a54439e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 26 Oct 2023 06:42:02 +0000 Subject: [PATCH 1/2] Bump solc from 0.8.21 to 0.8.22 Bumps [solc](https://github.com/ethereum/solc-js) from 0.8.21 to 0.8.22. - [Commits](https://github.com/ethereum/solc-js/compare/v0.8.21...v0.8.22) --- updated-dependencies: - dependency-name: solc 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 0453a577f..73c049222 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6025,9 +6025,9 @@ } }, "node_modules/solc": { - "version": "0.8.21", - "resolved": "https://registry.npmjs.org/solc/-/solc-0.8.21.tgz", - "integrity": "sha512-N55ogy2dkTRwiONbj4e6wMZqUNaLZkiRcjGyeafjLYzo/tf/IvhHY5P5wpe+H3Fubh9idu071i8eOGO31s1ylg==", + "version": "0.8.22", + "resolved": "https://registry.npmjs.org/solc/-/solc-0.8.22.tgz", + "integrity": "sha512-bA2tMZXx93R8L5LUH7TlB/f+QhkVyxrrY6LmgJnFFZlRknrhYVlBK1e3uHIdKybwoFabOFSzeaZjPeL/GIpFGQ==", "dev": true, "dependencies": { "command-exists": "^1.2.8", From 33df55a9db45cfdf56d1be8094b94a9891a5865a Mon Sep 17 00:00:00 2001 From: Klaus Hott Date: Thu, 26 Oct 2023 19:48:19 +1300 Subject: [PATCH 2/2] passing solc tests --- tests/format/HexLiteral/HexLiteral.sol | 2 +- .../__snapshots__/jsfmt.spec.js.snap | 8 ++-- .../ModifierInvocations.sol | 2 +- .../__snapshots__/jsfmt.spec.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__/jsfmt.spec.js.snap | 48 +++++++++---------- 17 files changed, 44 insertions(+), 44 deletions(-) diff --git a/tests/format/HexLiteral/HexLiteral.sol b/tests/format/HexLiteral/HexLiteral.sol index 546e5c2f9..9872699df 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.21; +pragma solidity 0.8.22; contract HexLiteral { bytes8 hex1 = hex'DeadBeef'; diff --git a/tests/format/HexLiteral/__snapshots__/jsfmt.spec.js.snap b/tests/format/HexLiteral/__snapshots__/jsfmt.spec.js.snap index 84f4d8051..dfef21e6e 100644 --- a/tests/format/HexLiteral/__snapshots__/jsfmt.spec.js.snap +++ b/tests/format/HexLiteral/__snapshots__/jsfmt.spec.js.snap @@ -9,7 +9,7 @@ singleQuote: false | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.21; +pragma solidity 0.8.22; contract HexLiteral { bytes8 hex1 = hex'DeadBeef'; @@ -18,7 +18,7 @@ contract HexLiteral { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.21; +pragma solidity 0.8.22; contract HexLiteral { bytes8 hex1 = hex"DeadBeef"; @@ -37,7 +37,7 @@ singleQuote: true | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.21; +pragma solidity 0.8.22; contract HexLiteral { bytes8 hex1 = hex'DeadBeef'; @@ -46,7 +46,7 @@ contract HexLiteral { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.21; +pragma solidity 0.8.22; contract HexLiteral { bytes8 hex1 = hex'DeadBeef'; diff --git a/tests/format/ModifierInvocations/ModifierInvocations.sol b/tests/format/ModifierInvocations/ModifierInvocations.sol index d7e21d655..a35254c82 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.21; +pragma solidity 0.8.22; contract ModifierDefinitions { // We enforce the use of parentheses in modifiers without parameters. diff --git a/tests/format/ModifierInvocations/__snapshots__/jsfmt.spec.js.snap b/tests/format/ModifierInvocations/__snapshots__/jsfmt.spec.js.snap index b3116cf76..3bd777b3a 100644 --- a/tests/format/ModifierInvocations/__snapshots__/jsfmt.spec.js.snap +++ b/tests/format/ModifierInvocations/__snapshots__/jsfmt.spec.js.snap @@ -7,7 +7,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.21; +pragma solidity 0.8.22; 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.21; +pragma solidity 0.8.22; contract ModifierDefinitions { // We enforce the use of parentheses in modifiers without parameters. diff --git a/tests/format/Parentheses/AddNoParentheses.sol b/tests/format/Parentheses/AddNoParentheses.sol index 36902c4a5..26403d60d 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.21; +pragma solidity 0.8.22; 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 e4142661c..7fa8fa8b4 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.21; +pragma solidity 0.8.22; 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 bb96d7297..64bf857d7 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.21; +pragma solidity 0.8.22; 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 b57ef461e..68523f7a5 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.21; +pragma solidity 0.8.22; 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 ee84c420f..2ab2a82dd 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.21; +pragma solidity 0.8.22; 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 7c0297d15..88bccad32 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.21; +pragma solidity 0.8.22; 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 f6dfa8340..31592c2ad 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.21; +pragma solidity 0.8.22; 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 24311f519..6bca6142e 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.21; +pragma solidity 0.8.22; 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 5931e9761..8c07d61f0 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.21; +pragma solidity 0.8.22; 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 700621d64..6e9e785e2 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.21; +pragma solidity 0.8.22; 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 3a653dd67..81dcfdaa1 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.21; +pragma solidity 0.8.22; 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 c14471788..c759216c9 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.21; +pragma solidity 0.8.22; contract SubNoParentheses { function subAdd(uint256 a, uint256 b, uint256 c) diff --git a/tests/format/Parentheses/__snapshots__/jsfmt.spec.js.snap b/tests/format/Parentheses/__snapshots__/jsfmt.spec.js.snap index d55a19398..b83133b17 100644 --- a/tests/format/Parentheses/__snapshots__/jsfmt.spec.js.snap +++ b/tests/format/Parentheses/__snapshots__/jsfmt.spec.js.snap @@ -8,7 +8,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.21; +pragma solidity 0.8.22; contract AddNoParentheses { function addAdd(uint256 a, uint256 b, uint256 c) @@ -102,7 +102,7 @@ contract AddNoParentheses { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.21; +pragma solidity 0.8.22; contract AddNoParentheses { function addAdd( @@ -205,7 +205,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.21; +pragma solidity 0.8.22; contract BitAndNoParentheses { function bitAndAdd(uint256 a, uint256 b, uint256 c) @@ -299,7 +299,7 @@ contract BitAndNoParentheses { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.21; +pragma solidity 0.8.22; contract BitAndNoParentheses { function bitAndAdd( @@ -402,7 +402,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.21; +pragma solidity 0.8.22; contract BitOrNoParentheses { function bitOrAdd(uint256 a, uint256 b, uint256 c) @@ -496,7 +496,7 @@ contract BitOrNoParentheses { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.21; +pragma solidity 0.8.22; contract BitOrNoParentheses { function bitOrAdd( @@ -599,7 +599,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.21; +pragma solidity 0.8.22; contract BitXorNoParentheses { function bitXorAdd(uint256 a, uint256 b, uint256 c) @@ -693,7 +693,7 @@ contract BitXorNoParentheses { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.21; +pragma solidity 0.8.22; contract BitXorNoParentheses { function bitXorAdd( @@ -796,7 +796,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.21; +pragma solidity 0.8.22; contract DivNoParentheses { function divAdd(uint256 a, uint256 b, uint256 c) @@ -890,7 +890,7 @@ contract DivNoParentheses { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.21; +pragma solidity 0.8.22; contract DivNoParentheses { function divAdd( @@ -993,7 +993,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.21; +pragma solidity 0.8.22; contract ExpNoParentheses { function expAdd(uint256 a, uint256 b, uint256 c) @@ -1087,7 +1087,7 @@ contract ExpNoParentheses { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.21; +pragma solidity 0.8.22; contract ExpNoParentheses { function expAdd( @@ -1190,7 +1190,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.21; +pragma solidity 0.8.22; contract LogicNoParentheses { function orOr(bool a, bool b, bool c) public pure returns (bool) { @@ -1212,7 +1212,7 @@ contract LogicNoParentheses { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.21; +pragma solidity 0.8.22; contract LogicNoParentheses { function orOr(bool a, bool b, bool c) public pure returns (bool) { @@ -1243,7 +1243,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.21; +pragma solidity 0.8.22; contract ModNoParentheses { function modAdd(uint256 a, uint256 b, uint256 c) @@ -1337,7 +1337,7 @@ contract ModNoParentheses { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.21; +pragma solidity 0.8.22; contract ModNoParentheses { function modAdd( @@ -1440,7 +1440,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.21; +pragma solidity 0.8.22; contract MulNoParentheses { function mulAdd(uint256 a, uint256 b, uint256 c) @@ -1534,7 +1534,7 @@ contract MulNoParentheses { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.21; +pragma solidity 0.8.22; contract MulNoParentheses { function mulAdd( @@ -1637,7 +1637,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.21; +pragma solidity 0.8.22; contract ShiftLNoParentheses { function shiftLAdd(uint256 a, uint256 b, uint256 c) @@ -1731,7 +1731,7 @@ contract ShiftLNoParentheses { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.21; +pragma solidity 0.8.22; contract ShiftLNoParentheses { function shiftLAdd( @@ -1834,7 +1834,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.21; +pragma solidity 0.8.22; contract ShiftRNoParentheses { function shiftRAdd(uint256 a, uint256 b, uint256 c) @@ -1928,7 +1928,7 @@ contract ShiftRNoParentheses { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.21; +pragma solidity 0.8.22; contract ShiftRNoParentheses { function shiftRAdd( @@ -2031,7 +2031,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.21; +pragma solidity 0.8.22; contract SubNoParentheses { function subAdd(uint256 a, uint256 b, uint256 c) @@ -2125,7 +2125,7 @@ contract SubNoParentheses { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.21; +pragma solidity 0.8.22; contract SubNoParentheses { function subAdd(