aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Hysen <greg.hysen@gmail.com>2018-08-30 04:15:40 +0800
committerGreg Hysen <greg.hysen@gmail.com>2018-08-30 04:15:40 +0800
commit5f1c9cfee503bd3fb53fe12bb21f42f3f7981dc7 (patch)
tree74aea3dd2f86e6b2d0ffe450529819c05d7ef635
parent62b93cf2ebf242ea5b432daddc030b24da46421f (diff)
downloaddexon-sol-tools-5f1c9cfee503bd3fb53fe12bb21f42f3f7981dc7.tar.gz
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
-rw-r--r--packages/contracts/src/2.0.0/protocol/AssetProxyOwner/AssetProxyOwner.sol6
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;