diff options
author | Greg Hysen <greg.hysen@gmail.com> | 2018-08-30 04:15:40 +0800 |
---|---|---|
committer | Greg Hysen <greg.hysen@gmail.com> | 2018-08-30 04:15:40 +0800 |
commit | 5f1c9cfee503bd3fb53fe12bb21f42f3f7981dc7 (patch) | |
tree | 74aea3dd2f86e6b2d0ffe450529819c05d7ef635 /packages | |
parent | 62b93cf2ebf242ea5b432daddc030b24da46421f (diff) | |
download | dexon-sol-tools-5f1c9cfee503bd3fb53fe12bb21f42f3f7981dc7.tar dexon-sol-tools-5f1c9cfee503bd3fb53fe12bb21f42f3f7981dc7.tar.gz dexon-sol-tools-5f1c9cfee503bd3fb53fe12bb21f42f3f7981dc7.tar.bz2 dexon-sol-tools-5f1c9cfee503bd3fb53fe12bb21f42f3f7981dc7.tar.lz dexon-sol-tools-5f1c9cfee503bd3fb53fe12bb21f42f3f7981dc7.tar.xz dexon-sol-tools-5f1c9cfee503bd3fb53fe12bb21f42f3f7981dc7.tar.zst dexon-sol-tools-5f1c9cfee503bd3fb53fe12bb21f42f3f7981dc7.zip |
Reverted syntax used by readBytes4 in AssetProxyOwner to be compatible with Solidity v0.4.10
Diffstat (limited to 'packages')
-rw-r--r-- | packages/contracts/src/2.0.0/protocol/AssetProxyOwner/AssetProxyOwner.sol | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/packages/contracts/src/2.0.0/protocol/AssetProxyOwner/AssetProxyOwner.sol b/packages/contracts/src/2.0.0/protocol/AssetProxyOwner/AssetProxyOwner.sol index e661f2427..7da3d87e2 100644 --- a/packages/contracts/src/2.0.0/protocol/AssetProxyOwner/AssetProxyOwner.sol +++ b/packages/contracts/src/2.0.0/protocol/AssetProxyOwner/AssetProxyOwner.sol @@ -105,13 +105,9 @@ contract AssetProxyOwner is uint256 index ) internal - pure returns (bytes4 result) { - require( - b.length >= index + 4, - "GREATER_OR_EQUAL_TO_4_LENGTH_REQUIRED" - ); + require(b.length >= index + 4); // Arrays are prefixed by a 32 byte length field index += 32; |