ReentrancyMock
ReentrancyMock
#
#
Functionscallback() (external)
countAndSend(contract ReentrancyAttack attacker) (external)
countAndCall(contract ReentrancyAttack attacker) (external)
countLocalRecursive(uint256 n) (public)
countThisRecursive(uint256 n) (public)
countLocalCall() (public)
countThisCall() (public)
getCount() → uint256 (public)
_preEntranceCheck() (internal)
_preEntranceSet() (internal)
_postEntranceReset() (internal)
#
ModifiersnonReentrant()
Prevents a contract from calling itself, directly or indirectly.
Calling a nonReentrant
function from another nonReentrant
function is not supported. It is possible to
prevent this from happening by making the nonReentrant
function external, and making it call a private
function that does the actual state modification.
nonReentrantView()
Designed to prevent a view-only method from being re-entered during a call to a nonReentrant()
state-changing method.