From 28ef50679926b536cc4b08696f287fe6a929622d Mon Sep 17 00:00:00 2001 From: "F. Eugene Aumson" Date: Tue, 2 Nov 2021 08:11:07 -0600 Subject: [PATCH] Support Solidity 0.8.8 --- docs/reference/solidity-support.md | 2 +- .../internal/hardhat-network/stack-traces/solidityTracer.ts | 2 +- .../solidity-config-warnings/multiple-unsupported-solc.js | 4 ++-- .../solidity-config-warnings/unsupported-new-solc.js | 2 +- .../solidity-config-warnings/unsupported-solc-in-override.js | 2 +- .../test/internal/hardhat-network/stack-traces/test.ts | 4 ++++ 6 files changed, 10 insertions(+), 6 deletions(-) diff --git a/docs/reference/solidity-support.md b/docs/reference/solidity-support.md index 167cf71345..e552334b05 100644 --- a/docs/reference/solidity-support.md +++ b/docs/reference/solidity-support.md @@ -13,7 +13,7 @@ These are the versions of Solidity that you can expect to fully work with Hardha - Any 0.5.x version starting from 0.5.1 - Any 0.6.x version - Any 0.7.x version -- Any 0.8.x version up to and including 0.8.7 +- Any 0.8.x version up to and including 0.8.8 We recommend against using Hardhat with newer, unsupported versions of Solidity. But if you need to do so; please read on. diff --git a/packages/hardhat-core/src/internal/hardhat-network/stack-traces/solidityTracer.ts b/packages/hardhat-core/src/internal/hardhat-network/stack-traces/solidityTracer.ts index 90824afd63..06ad2c8f46 100644 --- a/packages/hardhat-core/src/internal/hardhat-network/stack-traces/solidityTracer.ts +++ b/packages/hardhat-core/src/internal/hardhat-network/stack-traces/solidityTracer.ts @@ -31,7 +31,7 @@ import { StackTraceEntryType, } from "./solidity-stack-trace"; -export const SUPPORTED_SOLIDITY_VERSION_RANGE = "<=0.8.7"; +export const SUPPORTED_SOLIDITY_VERSION_RANGE = "<=0.8.8"; export const FIRST_SOLC_VERSION_SUPPORTED = "0.5.1"; export class SolidityTracer { diff --git a/packages/hardhat-core/test/fixture-projects/solidity-config-warnings/multiple-unsupported-solc.js b/packages/hardhat-core/test/fixture-projects/solidity-config-warnings/multiple-unsupported-solc.js index d24e54fc23..15905fe927 100644 --- a/packages/hardhat-core/test/fixture-projects/solidity-config-warnings/multiple-unsupported-solc.js +++ b/packages/hardhat-core/test/fixture-projects/solidity-config-warnings/multiple-unsupported-solc.js @@ -2,10 +2,10 @@ module.exports = { solidity: { compilers: [ { - version: "0.8.8", + version: "0.8.9", }, { - version: "0.8.9", + version: "0.8.10", }, ], }, diff --git a/packages/hardhat-core/test/fixture-projects/solidity-config-warnings/unsupported-new-solc.js b/packages/hardhat-core/test/fixture-projects/solidity-config-warnings/unsupported-new-solc.js index 8dd52de8c6..f06dd03fc5 100644 --- a/packages/hardhat-core/test/fixture-projects/solidity-config-warnings/unsupported-new-solc.js +++ b/packages/hardhat-core/test/fixture-projects/solidity-config-warnings/unsupported-new-solc.js @@ -1,3 +1,3 @@ module.exports = { - solidity: "0.8.8", + solidity: "0.8.9", }; diff --git a/packages/hardhat-core/test/fixture-projects/solidity-config-warnings/unsupported-solc-in-override.js b/packages/hardhat-core/test/fixture-projects/solidity-config-warnings/unsupported-solc-in-override.js index ea361a65b8..5ad765c4a7 100644 --- a/packages/hardhat-core/test/fixture-projects/solidity-config-warnings/unsupported-solc-in-override.js +++ b/packages/hardhat-core/test/fixture-projects/solidity-config-warnings/unsupported-solc-in-override.js @@ -6,7 +6,7 @@ module.exports = { }, ], overrides: { - "contracts/Foo.sol": { version: "0.8.8" }, + "contracts/Foo.sol": { version: "0.8.9" }, }, }, }; diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test.ts b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test.ts index 356646ae23..ed85434501 100644 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test.ts +++ b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test.ts @@ -749,6 +749,10 @@ const solidityCompilers = [ solidityVersion: "0.8.7", compilerPath: "soljson-v0.8.7+commit.e28d00a7.js", }, + { + solidityVersion: "0.8.8", + compilerPath: "soljson-v0.8.8+commit.dddeac2f.js", + }, ]; const solidity05Compilers = solidityCompilers.filter(({ solidityVersion }) =>