diff --git a/packages/concordia-contracts/.solhint.json b/packages/concordia-contracts/.solhint.json index 4f56664..c610645 100644 --- a/packages/concordia-contracts/.solhint.json +++ b/packages/concordia-contracts/.solhint.json @@ -1,7 +1,7 @@ { "extends": "solhint:recommended", "rules": { - "compiler-version": ["error","^0.7.5"], + "compiler-version": ["error","~0.8.0"], "func-visibility": ["warn",{"ignoreConstructors" : true}], "not-rely-on-time": "off", "state-visibility": "off" diff --git a/packages/concordia-contracts/contracts/Forum.sol b/packages/concordia-contracts/contracts/Forum.sol index b450565..233300c 100644 --- a/packages/concordia-contracts/contracts/Forum.sol +++ b/packages/concordia-contracts/contracts/Forum.sol @@ -1,6 +1,5 @@ //SPDX-License-Identifier: MIT -pragma solidity 0.7.5; -pragma experimental ABIEncoderV2; +pragma solidity 0.8.0; contract Forum { // Error messages for require() diff --git a/packages/concordia-contracts/contracts/Migrations.sol b/packages/concordia-contracts/contracts/Migrations.sol index 3382b16..d90faf7 100644 --- a/packages/concordia-contracts/contracts/Migrations.sol +++ b/packages/concordia-contracts/contracts/Migrations.sol @@ -1,5 +1,5 @@ //SPDX-License-Identifier: MIT -pragma solidity 0.7.5; +pragma solidity 0.8.0; contract Migrations { address public owner; diff --git a/packages/concordia-contracts/contracts/PostVoting.sol b/packages/concordia-contracts/contracts/PostVoting.sol index ac129a0..3d1b073 100644 --- a/packages/concordia-contracts/contracts/PostVoting.sol +++ b/packages/concordia-contracts/contracts/PostVoting.sol @@ -1,5 +1,5 @@ //SPDX-License-Identifier: MIT -pragma solidity 0.7.5; +pragma solidity 0.8.0; import "./Forum.sol"; diff --git a/packages/concordia-contracts/contracts/Voting.sol b/packages/concordia-contracts/contracts/Voting.sol index c264ffa..83e9c0e 100644 --- a/packages/concordia-contracts/contracts/Voting.sol +++ b/packages/concordia-contracts/contracts/Voting.sol @@ -1,5 +1,5 @@ //SPDX-License-Identifier: MIT -pragma solidity 0.7.5; +pragma solidity 0.8.0; import "./Forum.sol"; diff --git a/packages/concordia-contracts/test/TestVoting.sol b/packages/concordia-contracts/test/TestVoting.sol index 3c801a0..dd0c3a4 100644 --- a/packages/concordia-contracts/test/TestVoting.sol +++ b/packages/concordia-contracts/test/TestVoting.sol @@ -1,5 +1,5 @@ //SPDX-License-Identifier: MIT -pragma solidity 0.7.5; +pragma solidity 0.8.0; import "truffle/Assert.sol"; import "truffle/DeployedAddresses.sol"; diff --git a/packages/concordia-contracts/truffle-config.js b/packages/concordia-contracts/truffle-config.js index 6af6811..6d07a9f 100644 --- a/packages/concordia-contracts/truffle-config.js +++ b/packages/concordia-contracts/truffle-config.js @@ -10,7 +10,7 @@ module.exports = { // to customize your Truffle configuration! compilers: { solc: { - version: '0.7.5', + version: '0.8.0', }, }, contracts_build_directory: path.join(__dirname, 'build/'),