Reverted syntax used by readBytes4 in AssetProxyOwner to be compatible with Solidity v0.4.10

This commit is contained in:
Greg Hysen 2018-08-29 13:15:40 -07:00
parent 62b93cf2eb
commit 5f1c9cfee5

View File

@ -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;