diff --git a/contracts/mocks/ComputedAddressRemainderMock.sol b/contracts/mocks/ComputedAddressRemainderMock.sol index 93c1228fbde..a265cbf43f2 100644 --- a/contracts/mocks/ComputedAddressRemainderMock.sol +++ b/contracts/mocks/ComputedAddressRemainderMock.sol @@ -29,7 +29,8 @@ contract ComputedAddressRemainderMock { function _getRemainder(address addr) internal pure returns (uint256 remainder) { uint256 remainderMask = _REMAINDER_MASK; - assembly ("memory-safe") { + /// @solidity memory-safe-assembly + assembly { remainder := and(addr, remainderMask) } }