Skip to content

Commit 66082b3

Browse files
authored
Upgrade solidity version in tests to 0.8.x (#843)
1 parent fbed395 commit 66082b3

File tree

174 files changed

+224
-353
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

174 files changed

+224
-353
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@
5454
"ethereum-waffle": "^3.4.0",
5555
"ethers": "^5.5.3",
5656
"ganache-cli": "6.12.2",
57-
"hardhat": "^2.17.3",
57+
"hardhat": "^2.19.5",
5858
"hardhat-gas-reporter": "^1.0.1",
5959
"nyc": "^14.1.1",
60-
"solc": "^0.7.5"
60+
"solc": "0.8.24"
6161
},
6262
"peerDependencies": {
6363
"hardhat": "^2.11.0"

test/sources/generic/assets/SimpleError.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This contract should throw a parse error in instrumentSolidity.js
2-
pragma solidity ^0.7.0;
2+
pragma solidity >=0.8.0 <0.9.0;
33

44
contract SimpleError {
55
uint x = 0;

test/sources/projects/contract-subfolders/contracts/A/ContractA2.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pragma solidity ^0.7.0;
1+
pragma solidity >=0.8.0 <0.9.0;
22

33
import "./../B/ContractB2.sol";
44

test/sources/projects/contract-subfolders/contracts/B/ContractB2.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pragma solidity ^0.7.0;
1+
pragma solidity >=0.8.0 <0.9.0;
22

33

44
contract ContractB {

test/sources/projects/contract-subfolders/hardhat.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module.exports={
88
}
99
},
1010
solidity: {
11-
version: "0.7.3"
11+
version: "0.8.17"
1212
},
1313
paths: {
1414
sources: './contracts/A'

test/sources/projects/ganache-solcoverjs/contracts/ContractA.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pragma solidity ^0.7.0;
1+
pragma solidity >=0.8.0 <0.9.0;
22

33

44
contract ContractA {

test/sources/projects/ganache-solcoverjs/contracts/ContractB.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pragma solidity ^0.7.0;
1+
pragma solidity >=0.8.0 <0.9.0;
22

33

44
contract ContractB {

test/sources/projects/ganache-solcoverjs/contracts/ContractC.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pragma solidity ^0.7.0;
1+
pragma solidity >=0.8.0 <0.9.0;
22

33

44
contract ContractC {

test/sources/projects/ganache-solcoverjs/hardhat.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ require(__dirname + "/../plugins/nomiclabs.plugin");
33

44
module.exports = {
55
solidity: {
6-
version: "0.7.3"
6+
version: "0.8.17"
77
},
88
networks: {
99
coverage: {

test/sources/projects/hardhat-gas-reporter/contracts/ContractA.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pragma solidity ^0.7.0;
1+
pragma solidity >=0.8.0 <0.9.0;
22

33

44
contract ContractA {

0 commit comments

Comments
 (0)