Skip to content

Commit

Permalink
Merge pull request NomicFoundation#2012 from nomiclabs/solidity-0.8.6
Browse files Browse the repository at this point in the history
Support Solidity 0.8.6
  • Loading branch information
feuGeneA authored Nov 1, 2021
2 parents 441a467 + c501e1e commit 311cacf
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/lazy-bears-fly.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"hardhat": patch
---

Added support for Solidity 0.8.6.
2 changes: 1 addition & 1 deletion docs/reference/solidity-support.md
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.5
- Any 0.8.x version up to and including 0.8.6

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.5";
export const SUPPORTED_SOLIDITY_VERSION_RANGE = "<=0.8.6";
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.6",
version: "0.8.7",
},
{
version: "0.8.7",
version: "0.8.8",
},
],
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
solidity: "0.8.6",
solidity: "0.8.7",
};
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.6" },
"contracts/Foo.sol": { version: "0.8.7" },
},
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ describe("Forked provider", function () {
);

assert.equal(daiAfter.toString(), expectedDai.toString());
assert.closeTo(ethLost, 0.5, 0.01);
assert.closeTo(ethLost, 0.5, 0.02);
});
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,10 @@ const solidityCompilers = [
solidityVersion: "0.8.5",
compilerPath: "soljson-v0.8.5+commit.a4f2e591.js",
},
{
solidityVersion: "0.8.6",
compilerPath: "soljson-v0.8.6+commit.11564f7e.js",
},
];

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

0 comments on commit 311cacf

Please sign in to comment.