Reverted syntax used by readBytes4 in AssetProxyOwner to be compatible with Solidity v0.4.10
This commit is contained in:
parent
62b93cf2eb
commit
5f1c9cfee5
@ -105,13 +105,9 @@ contract AssetProxyOwner is
|
|||||||
uint256 index
|
uint256 index
|
||||||
)
|
)
|
||||||
internal
|
internal
|
||||||
pure
|
|
||||||
returns (bytes4 result)
|
returns (bytes4 result)
|
||||||
{
|
{
|
||||||
require(
|
require(b.length >= index + 4);
|
||||||
b.length >= index + 4,
|
|
||||||
"GREATER_OR_EQUAL_TO_4_LENGTH_REQUIRED"
|
|
||||||
);
|
|
||||||
|
|
||||||
// Arrays are prefixed by a 32 byte length field
|
// Arrays are prefixed by a 32 byte length field
|
||||||
index += 32;
|
index += 32;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user