File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -82,9 +82,7 @@ abstract contract ReentrancyGuard {
82
82
83
83
function _nonReentrantBefore () private {
84
84
// On the first call to nonReentrant, _status will be NOT_ENTERED
85
- if (_status == ENTERED) {
86
- revert ReentrancyGuardReentrantCall ();
87
- }
85
+ _nonReentrantBeforeView ();
88
86
89
87
// Any calls to nonReentrant after this point will fail
90
88
_status = ENTERED;
Original file line number Diff line number Diff line change @@ -58,9 +58,7 @@ abstract contract ReentrancyGuardTransient {
58
58
59
59
function _nonReentrantBefore () private {
60
60
// On the first call to nonReentrant, REENTRANCY_GUARD_STORAGE.asBoolean().tload() will be false
61
- if (_reentrancyGuardEntered ()) {
62
- revert ReentrancyGuardReentrantCall ();
63
- }
61
+ _nonReentrantBeforeView ();
64
62
65
63
// Any calls to nonReentrant after this point will fail
66
64
REENTRANCY_GUARD_STORAGE.asBoolean ().tstore (true );
You can’t perform that action at this time.
0 commit comments