Skip to content

Commit 7f85a0c

Browse files
committed
Update tests for solc 0.7.x (#582)
1 parent bdc6f91 commit 7f85a0c

File tree

149 files changed

+728
-6012
lines changed

Some content is hidden

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

149 files changed

+728
-6012
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@
6262
"hardhat-gas-reporter": "^1.0.1",
6363
"mocha": "5.2.0",
6464
"nyc": "^14.1.1",
65-
"solc": "^0.5.10",
66-
"truffle": "5.0.31",
65+
"solc": "^0.7.5",
66+
"truffle": "5.1.43",
6767
"truffle-config": "^1.1.18"
6868
}
6969
}

test/integration/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.5.0;
2+
pragma solidity ^0.7.0;
33

44
contract SimpleError {
55
uint x = 0;

test/integration/generic/contracts/Migrations.sol

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

33

44
contract Migrations {

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
pragma solidity ^0.5.0;
1+
pragma solidity ^0.7.0;
22

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

55
contract ContractA is ContractB {
6-
uint x;
76
constructor() public {
87
}
98

test/integration/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.5.0;
1+
pragma solidity ^0.7.0;
22

33

44
contract ContractB {

test/integration/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.5.15"
11+
version: "0.7.3"
1212
},
1313
paths: {
1414
sources: './contracts/A'

test/integration/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.5.0;
1+
pragma solidity ^0.7.0;
22

33

44
contract ContractA {

test/integration/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.5.0;
1+
pragma solidity ^0.7.0;
22

33

44
contract ContractB {

test/integration/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.5.0;
1+
pragma solidity ^0.7.0;
22

33

44
contract ContractC {

test/integration/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.5.15"
6+
version: "0.7.3"
77
},
88
networks: {
99
coverage: {

0 commit comments

Comments
 (0)