File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -62,11 +62,12 @@ abstract contract ReentrancyGuard {
62
62
}
63
63
64
64
/**
65
- * @dev View variant of the `nonReentrant` modifier. Can be used to prevent view functions from being called
66
- * while the internal state of the contract is inconsistent and invariants do not hold .
65
+ * @dev A `view` only version of {nonReentrant}. Use to block view functions
66
+ * from being called, preventing reading from inconsistent contract state .
67
67
*
68
- * This being a "view" version of the modifier, it will not set the reentrancy status. This modifier should only
69
- * be used in view functions. Payable and non-payable function should use the standard "nonReentrant" modifier.
68
+ * CAUTION: This is a "view" modifier and does not change the reentrancy
69
+ * status. Use it only on view functions. For payable or non-payable functions,
70
+ * use the standard {nonReentrant} modifier instead.
70
71
*/
71
72
modifier nonReentrantView () {
72
73
_nonReentrantBeforeView ();
Original file line number Diff line number Diff line change @@ -38,11 +38,12 @@ abstract contract ReentrancyGuardTransient {
38
38
}
39
39
40
40
/**
41
- * @dev View variant of the `nonReentrant` modifier. Can be used to prevent view functions from being called
42
- * while the internal state of the contract is inconsistent and invariants do not hold .
41
+ * @dev A `view` only version of {nonReentrant}. Use to block view functions
42
+ * from being called, preventing reading from inconsistent contract state .
43
43
*
44
- * This being a "view" version of the modifier, it will not set the reentrancy status. This modifier should only
45
- * be used in view functions. Payable and non-payable function should use the standard "nonReentrant" modifier.
44
+ * CAUTION: This is a "view" modifier and does not change the reentrancy
45
+ * status. Use it only on view functions. For payable or non-payable functions,
46
+ * use the standard {nonReentrant} modifier instead.
46
47
*/
47
48
modifier nonReentrantView () {
48
49
_nonReentrantBeforeView ();
You can’t perform that action at this time.
0 commit comments