diff --git a/contracts/BytesHelperLib.sol b/contracts/BytesHelperLib.sol index c986cc62..6e64e71f 100644 --- a/contracts/BytesHelperLib.sol +++ b/contracts/BytesHelperLib.sol @@ -16,12 +16,8 @@ library BytesHelperLib { bytes memory data, uint256 offset ) internal pure returns (address output) { - bytes memory b = new bytes(20); - for (uint256 i = 0; i < 20; i++) { - b[i] = data[i + offset]; - } assembly { - output := mload(add(b, 20)) + output := mload(add(add(data, offset), 32)) } }