From b0bca7fc36eb6e748b62826e8990d39ad42e45c9 Mon Sep 17 00:00:00 2001 From: Alexey Date: Mon, 13 Apr 2020 22:02:21 +0300 Subject: [PATCH] fix solidity version --- contracts/ERC20Tornado.sol | 2 +- contracts/ETHTornado.sol | 2 +- contracts/MerkleTreeWithHistory.sol | 2 +- contracts/Mocks/IUSDT.sol | 2 +- contracts/Mocks/MerkleTreeWithHistoryMock.sol | 2 +- contracts/Tornado.sol | 2 +- truffle-config.js | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/contracts/ERC20Tornado.sol b/contracts/ERC20Tornado.sol index c82b923..b559041 100644 --- a/contracts/ERC20Tornado.sol +++ b/contracts/ERC20Tornado.sol @@ -9,7 +9,7 @@ * ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo */ -pragma solidity ^0.5.8; +pragma solidity 0.5.17; import "./Tornado.sol"; diff --git a/contracts/ETHTornado.sol b/contracts/ETHTornado.sol index fba3d8a..e8b353d 100644 --- a/contracts/ETHTornado.sol +++ b/contracts/ETHTornado.sol @@ -9,7 +9,7 @@ * ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo */ -pragma solidity ^0.5.8; +pragma solidity 0.5.17; import "./Tornado.sol"; diff --git a/contracts/MerkleTreeWithHistory.sol b/contracts/MerkleTreeWithHistory.sol index 756e424..56966e5 100644 --- a/contracts/MerkleTreeWithHistory.sol +++ b/contracts/MerkleTreeWithHistory.sol @@ -9,7 +9,7 @@ * ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo */ -pragma solidity ^0.5.8; +pragma solidity 0.5.17; library Hasher { function MiMCSponge(uint256 in_xL, uint256 in_xR) public pure returns (uint256 xL, uint256 xR); diff --git a/contracts/Mocks/IUSDT.sol b/contracts/Mocks/IUSDT.sol index 4425677..08d4bc1 100644 --- a/contracts/Mocks/IUSDT.sol +++ b/contracts/Mocks/IUSDT.sol @@ -1,4 +1,4 @@ -pragma solidity ^0.5.8; +pragma solidity 0.5.17; contract ERC20Basic { uint public _totalSupply; diff --git a/contracts/Mocks/MerkleTreeWithHistoryMock.sol b/contracts/Mocks/MerkleTreeWithHistoryMock.sol index 43bfced..1b33e8c 100644 --- a/contracts/Mocks/MerkleTreeWithHistoryMock.sol +++ b/contracts/Mocks/MerkleTreeWithHistoryMock.sol @@ -1,4 +1,4 @@ -pragma solidity ^0.5.8; +pragma solidity 0.5.17; import '../MerkleTreeWithHistory.sol'; diff --git a/contracts/Tornado.sol b/contracts/Tornado.sol index bb5010a..5ede6fe 100644 --- a/contracts/Tornado.sol +++ b/contracts/Tornado.sol @@ -9,7 +9,7 @@ * ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo */ -pragma solidity ^0.5.8; +pragma solidity 0.5.17; import "./MerkleTreeWithHistory.sol"; import "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; diff --git a/truffle-config.js b/truffle-config.js index c74d15f..47a0f87 100644 --- a/truffle-config.js +++ b/truffle-config.js @@ -86,7 +86,7 @@ module.exports = { // Configure your compilers compilers: { solc: { - version: '0.5.11', // Fetch exact version from solc-bin (default: truffle's version) + version: '0.5.17', // Fetch exact version from solc-bin (default: truffle's version) // docker: true, // Use "0.5.1" you've installed locally with docker (default: false) settings: { // See the solidity docs for advice about optimization and evmVersion optimizer: {