Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions contracts/utils/ReentrancyGuard.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ import {StorageSlot} from "./StorageSlot.sol";
* TIP: If EIP-1153 (transient storage) is available on the chain you're deploying at,
* consider using {ReentrancyGuardTransient} instead.
*
* NOTE: {ReentrancyGuard} and {ReentrancyGuardTransient} are not interoperable. Since
* each tracks reentrancy state independently, a `nonReentrant` function from one will not
* prevent reentrant calls to a `nonReentrant` function from the other.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
Expand Down
4 changes: 4 additions & 0 deletions contracts/utils/ReentrancyGuardTransient.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ import {TransientSlot} from "./TransientSlot.sol";
*
* NOTE: This variant only works on networks where EIP-1153 is available.
*
* NOTE: {ReentrancyGuardTransient} and {ReentrancyGuard} are not interoperable. Since
* each tracks reentrancy state independently, a `nonReentrant` function from one will not
* prevent reentrant calls to a `nonReentrant` function from the other.
*
* _Available since v5.1._
*
* @custom:stateless
Expand Down