Skip to content

Commit

Permalink
Change memory-safe to an annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
ernestognw committed Mar 15, 2024
1 parent 85d0b75 commit a52481a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contracts/mocks/ComputedAddressRemainderMock.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit a52481a

Please sign in to comment.