From e1983f4c05f7d3344014ceced6ee88542848ac40 Mon Sep 17 00:00:00 2001 From: Vectorized Date: Sun, 7 Jan 2024 23:26:45 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A5=A2=20Edit=20comment=20(#780)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/ReentrancyGuard.sol | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/utils/ReentrancyGuard.sol b/src/utils/ReentrancyGuard.sol index 16a3cb68e6..9ae517f6f0 100644 --- a/src/utils/ReentrancyGuard.sol +++ b/src/utils/ReentrancyGuard.sol @@ -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 {