From 32a5cfdd3ffb0b7e09be34cbb6881df7b99f31ba Mon Sep 17 00:00:00 2001 From: t11s Date: Thu, 8 Feb 2024 16:49:39 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Another=20comment?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/TransientReentrancyGuard.sol | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/utils/TransientReentrancyGuard.sol b/src/utils/TransientReentrancyGuard.sol index 8db47700..752141c0 100644 --- a/src/utils/TransientReentrancyGuard.sol +++ b/src/utils/TransientReentrancyGuard.sol @@ -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()) }