forked from NomicFoundation/hardhat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request NomicFoundation#2017 from nomiclabs/solidity-0.8.8
Support Solidity 0.8.8
- Loading branch information
Showing
9 changed files
with
53 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"hardhat": patch | ||
--- | ||
|
||
Added support for Solidity 0.8.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/hardhat-core/test/fixture-projects/solidity-config-warnings/unsupported-new-solc.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module.exports = { | ||
solidity: "0.8.8", | ||
solidity: "0.8.9", | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
.../test/internal/hardhat-network/stack-traces/test-files/0_8/user-defined-value-types/c.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...t/internal/hardhat-network/stack-traces/test-files/0_8/user-defined-value-types/test.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters