|
@@ -4,7 +4,7 @@ pragma solidity ^0.4.24;
|
|
/**
|
|
/**
|
|
* @title Helps contracts guard against reentrancy attacks.
|
|
* @title Helps contracts guard against reentrancy attacks.
|
|
* @author Remco Bloemen <remco@2π.com>
|
|
* @author Remco Bloemen <remco@2π.com>
|
|
- * @notice If you mark a function `nonReentrant`, you should also
|
|
|
|
|
|
+ * @dev If you mark a function `nonReentrant`, you should also
|
|
* mark it `external`.
|
|
* mark it `external`.
|
|
*/
|
|
*/
|
|
contract ReentrancyGuard {
|
|
contract ReentrancyGuard {
|
|
@@ -16,10 +16,10 @@ contract ReentrancyGuard {
|
|
|
|
|
|
/**
|
|
/**
|
|
* @dev Prevents a contract from calling itself, directly or indirectly.
|
|
* @dev Prevents a contract from calling itself, directly or indirectly.
|
|
- * @notice If you mark a function `nonReentrant`, you should also
|
|
|
|
- * mark it `external`. Calling one nonReentrant function from
|
|
|
|
|
|
+ * If you mark a function `nonReentrant`, you should also
|
|
|
|
+ * mark it `external`. Calling one `nonReentrant` function from
|
|
* another is not supported. Instead, you can implement a
|
|
* another is not supported. Instead, you can implement a
|
|
- * `private` function doing the actual work, and a `external`
|
|
|
|
|
|
+ * `private` function doing the actual work, and an `external`
|
|
* wrapper marked as `nonReentrant`.
|
|
* wrapper marked as `nonReentrant`.
|
|
*/
|
|
*/
|
|
modifier nonReentrant() {
|
|
modifier nonReentrant() {
|