Skip to content

ReentrancyGuard ​

Git Source

Inherits:Variables, Error

ReentrancyGuard based on OpenZeppelin implementation. https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v4.8/contracts/security/ReentrancyGuard.sol

State Variables ​

REENTRANCY_NOT_ENTERED ​

solidity
uint8 internal constant REENTRANCY_NOT_ENTERED = 1;

REENTRANCY_ENTERED ​

solidity
uint8 internal constant REENTRANCY_ENTERED = 2;

Functions ​

constructor ​

solidity
constructor();

reentrancy ​

Prevents a contract from calling itself, directly or indirectly. See OpenZeppelin implementation for more info

solidity
modifier reentrancy();