Skip to content

Commit

Permalink
Merge pull request NomicFoundation#2017 from nomiclabs/solidity-0.8.8
Browse files Browse the repository at this point in the history
Support Solidity 0.8.8
  • Loading branch information
feuGeneA authored Nov 4, 2021
2 parents 0397ffb + ba4bfc1 commit 36bb1b2
Show file tree
Hide file tree
Showing 9 changed files with 53 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/smooth-turkeys-grab.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"hardhat": patch
---

Added support for Solidity 0.8.8
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.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.

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.7";
export const SUPPORTED_SOLIDITY_VERSION_RANGE = "<=0.8.8";
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.8",
version: "0.8.9",
},
{
version: "0.8.9",
version: "0.8.10",
},
],
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
solidity: "0.8.8",
solidity: "0.8.9",
};
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.8" },
"contracts/Foo.sol": { version: "0.8.9" },
},
},
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
pragma solidity ^0.8.8;

type UFixed is uint256;

contract C {
function f(UFixed a) public returns (UFixed b) {
require(false, "error reason");
b = a;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"solc": "^0.8.8",
"transactions": [
{
"file": "c.sol",
"contract": "C"
},
{
"to": 0,
"function": "f",
"params": [1],
"stackTrace": [
{
"type": "REVERT_ERROR",
"sourceReference": {
"function": "f",
"contract": "C",
"file": "c.sol",
"line": 7,
"range": [164, 194]
},
"message": "error reason",
"isInvalidOpcodeError": false
}
]
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) =>
Expand Down

0 comments on commit 36bb1b2

Please sign in to comment.