Release v2.1.0 solc 0.5.x (#1568)

* Now compiling in a separate directory using truffle 5.

* Ported to 0.5.1, now compiling using 0.5.1.

* test now also compiles using the truffle 5 hack.

* Downgraded to 0.5.0.

* Sorted scripts.

* Cleaned up the compile script a bit.
This commit is contained in:
Nicolás Venturo
2018-12-20 12:26:43 -03:00
committed by GitHub
parent 02f9727dd8
commit be5ed7364b
127 changed files with 284 additions and 236 deletions

View File

@ -1,4 +1,4 @@
pragma solidity ^0.4.24;
pragma solidity ^0.5.0;
import "../utils/ReentrancyGuard.sol";
import "./ReentrancyAttack.sol";
@ -25,8 +25,8 @@ contract ReentrancyMock is ReentrancyGuard {
if (n > 0) {
count();
// solium-disable-next-line security/no-low-level-calls
bool result = address(this).call(abi.encodeWithSignature("countThisRecursive(uint256)", n - 1));
require(result == true);
(bool success,) = address(this).call(abi.encodeWithSignature("countThisRecursive(uint256)", n - 1));
require(success);
}
}