Upgrade solc version to 0.5.3 for exchange-libs and utils

This commit is contained in:
Amir Bandeali
2019-02-07 10:21:18 -08:00
parent b1fd3429ae
commit 5aa8ea10c3
19 changed files with 24 additions and 31 deletions

View File

@@ -16,7 +16,7 @@
*/
pragma solidity ^0.4.24;
pragma solidity ^0.5.3;
import "./LibBytes.sol";
@@ -31,7 +31,7 @@ library LibAddressArray {
/// @return Array of addresses: [... addressArray, addressToAppend]
function append(address[] memory addressArray, address addressToAppend)
internal pure
returns (address[])
returns (address[] memory)
{
// Get stats on address array and free memory
uint256 freeMemPtr = 0;

View File

@@ -16,7 +16,7 @@
*/
pragma solidity ^0.4.24;
pragma solidity ^0.5.3;
library LibBytes {

View File

@@ -1,4 +1,4 @@
pragma solidity ^0.4.24;
pragma solidity ^0.5.3;
import "./interfaces/IOwnable.sol";

View File

@@ -16,7 +16,7 @@
*/
pragma solidity ^0.4.24;
pragma solidity ^0.5.3;
contract ReentrancyGuard {

View File

@@ -1,4 +1,4 @@
pragma solidity ^0.4.24;
pragma solidity ^0.5.3;
contract SafeMath {

View File

@@ -1,4 +1,4 @@
pragma solidity ^0.4.24;
pragma solidity ^0.5.3;
contract IOwnable {

View File

@@ -16,7 +16,7 @@
*/
pragma solidity ^0.4.24;
pragma solidity ^0.5.3;
import "../src/LibBytes.sol";

View File

@@ -16,7 +16,7 @@
*/
pragma solidity ^0.4.24;
pragma solidity ^0.5.3;
import "../src/LibBytes.sol";
@@ -244,14 +244,14 @@ contract TestLibBytes {
/// @param length Length of bytes to copy from <source> to <dest>
/// @return mem Memory contents after calling memCopy.
function testMemcpy(
bytes mem,
bytes memory mem,
uint256 dest,
uint256 source,
uint256 length
)
public // not external, we need input in memory
pure
returns (bytes)
returns (bytes memory)
{
// Sanity check. Overflows are not checked.
require(source + length <= mem.length);