From 7c64eb6123a18ad83052753114bec1169f7952e5 Mon Sep 17 00:00:00 2001 From: cgewecke Date: Mon, 25 Nov 2024 10:08:21 -0800 Subject: [PATCH] Add transient storage support (#898) --- package.json | 2 +- test/sources/projects/solc-8/contracts/Contract_solc8.sol | 1 + test/sources/projects/solc-8/hardhat.config.js | 3 ++- yarn.lock | 7 ++++--- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 39e5a27..ea88533 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "license": "ISC", "dependencies": { "@ethersproject/abi": "^5.0.9", - "@solidity-parser/parser": "^0.18.0", + "@solidity-parser/parser": "^0.19.0", "chalk": "^2.4.2", "death": "^1.1.0", "difflib": "^0.2.4", diff --git a/test/sources/projects/solc-8/contracts/Contract_solc8.sol b/test/sources/projects/solc-8/contracts/Contract_solc8.sol index 2a28d24..d8d08f2 100644 --- a/test/sources/projects/solc-8/contracts/Contract_solc8.sol +++ b/test/sources/projects/solc-8/contracts/Contract_solc8.sol @@ -10,6 +10,7 @@ using Library_solc8 for uint256; contract ContractA { mapping(bytes32 key => uint256) public authorization; address public someAddress; + bool transient locked; function throwError(address _add) external { this; diff --git a/test/sources/projects/solc-8/hardhat.config.js b/test/sources/projects/solc-8/hardhat.config.js index fd24249..a4072b6 100644 --- a/test/sources/projects/solc-8/hardhat.config.js +++ b/test/sources/projects/solc-8/hardhat.config.js @@ -3,11 +3,12 @@ require(__dirname + "/../plugins/nomiclabs.plugin"); module.exports = { solidity: { - version: "0.8.21", + version: "0.8.28", settings: { optimizer: { enabled: true }, + evmVersion: "cancun", viaIR: process.env.VIA_IR === "true" } }, diff --git a/yarn.lock b/yarn.lock index e87e816..948566c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -905,9 +905,10 @@ dependencies: antlr4ts "^0.5.0-alpha.4" -"@solidity-parser/parser@^0.18.0": - version "0.18.0" - resolved "https://registry.yarnpkg.com/@solidity-parser/parser/-/parser-0.18.0.tgz#8e77a02a09ecce957255a2f48c9a7178ec191908" +"@solidity-parser/parser@^0.19.0": + version "0.19.0" + resolved "https://registry.yarnpkg.com/@solidity-parser/parser/-/parser-0.19.0.tgz#37a8983b2725af9b14ff8c4a475fa0e98d773c3f" + integrity sha512-RV16k/qIxW/wWc+mLzV3ARyKUaMUTBy9tOLMzFhtNSKYeTAanQ3a5MudJKf/8arIFnA2L27SNjarQKmFg0w/jA== "@szmarczak/http-timer@^1.1.2": version "1.1.2"