Skip to content

Commit

Permalink
Edit comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Vectorized committed Jan 7, 2024
1 parent af39af4 commit a60c56d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/utils/ReentrancyGuard.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@ abstract contract ReentrancyGuard {
/*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

/// @dev Equivalent to: `uint72(bytes9(keccak256("_REENTRANCY_GUARD_SLOT")))`.
/// Large enough to avoid collisions with lower slots,
/// but not too large to prevent bytecode bloat.
/// 9 bytes is large enough to avoid collisions with lower slots,
/// but not too large to result in excessive bytecode bloat.
uint256 private constant _REENTRANCY_GUARD_SLOT = 0x929eee149b4bd21268;

/*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
/* REENTRANCY GUARD */
/*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

/// @dev Guards a function from reentrancy.
modifier nonReentrant() virtual {
/// @solidity memory-safe-assembly
assembly {
Expand Down

0 comments on commit a60c56d

Please sign in to comment.