Skip to content

Commit

Permalink
馃摑 Another comment
Browse files Browse the repository at this point in the history
  • Loading branch information
transmissions11 committed Feb 9, 2024
1 parent 8cd38ab commit 32a5cfd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utils/TransientReentrancyGuard.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ abstract contract TransientReentrancyGuard {

// Any non-zero value would work, but
// ADDRESS is cheap and certainly not 0.
// Wastes a bit of gas doing this before
// require in the revert path, but we're
// only optimizing for the happy path here.
tstore(REENTRANCY_GUARD_SLOT, address())
}

Expand Down

0 comments on commit 32a5cfd

Please sign in to comment.