Skip to content

Commit

Permalink
Merge pull request #3026 from NomicFoundation/gene/hh-434
Browse files Browse the repository at this point in the history
Support Solidity 0.8.16
  • Loading branch information
feuGeneA committed Aug 15, 2022
2 parents 85bd04e + b360ed3 commit 5beaf0b
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.9
- Any 0.8.x version up to and including 0.8.16

We recommend against using Hardhat with newer, unsupported versions of Solidity. But if you need to do so; please read on.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import {
StackTraceEntryType,
} from "./solidity-stack-trace";

export const SUPPORTED_SOLIDITY_VERSION_RANGE = "<=0.8.9";
export const SUPPORTED_SOLIDITY_VERSION_RANGE = "<=0.8.16";
export const FIRST_SOLC_VERSION_SUPPORTED = "0.5.1";

export class SolidityTracer {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ module.exports = {
solidity: {
compilers: [
{
version: "0.8.10",
version: "0.8.17",
},
{
version: "0.8.11",
version: "0.8.18",
},
],
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
solidity: "0.8.10",
solidity: "0.8.17",
};
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
},
],
overrides: {
"contracts/Foo.sol": { version: "0.8.10" },
"contracts/Foo.sol": { version: "0.8.17" },
},
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -757,6 +757,34 @@ const solidityCompilers = [
solidityVersion: "0.8.9",
compilerPath: "soljson-v0.8.9+commit.e5eed63a.js",
},
{
solidityVersion: "0.8.10",
compilerPath: "soljson-v0.8.10+commit.fc410830.js",
},
{
solidityVersion: "0.8.11",
compilerPath: "soljson-v0.8.11+commit.d7f03943.js",
},
{
solidityVersion: "0.8.12",
compilerPath: "soljson-v0.8.12+commit.f00d7308.js",
},
{
solidityVersion: "0.8.13",
compilerPath: "soljson-v0.8.13+commit.abaa5c0e.js",
},
{
solidityVersion: "0.8.14",
compilerPath: "soljson-v0.8.14+commit.80d49f37.js",
},
{
solidityVersion: "0.8.15",
compilerPath: "soljson-v0.8.15+commit.e14f2714.js",
},
{
solidityVersion: "0.8.16",
compilerPath: "soljson-v0.8.16+commit.07a7930e.js",
},
];

const solidity05Compilers = solidityCompilers.filter(({ solidityVersion }) =>
Expand Down

1 comment on commit 5beaf0b

@vercel
Copy link

@vercel vercel bot commented on 5beaf0b Aug 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.