From 8f2adf3c4810c10bbe9f6880b057907e1470c560 Mon Sep 17 00:00:00 2001 From: r4bbit <445106+0x-r4bbit@users.noreply.github.com> Date: Thu, 1 May 2025 16:06:08 +0200 Subject: [PATCH] refactor(TrustedCodehashAccess): rename storage gap variable When debugging storage layouts, it's actually hard to follow where all the `__gap` fields are coming from when multiple upgradeable contracts are part of the dependency chain. This commit changes the name of `__gap` toa contract specific name, allowing for clarity when inspecting storage layouts. --- src/TrustedCodehashAccess.sol | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/TrustedCodehashAccess.sol b/src/TrustedCodehashAccess.sol index 69b8e1a..a8810da 100644 --- a/src/TrustedCodehashAccess.sol +++ b/src/TrustedCodehashAccess.sol @@ -15,7 +15,8 @@ abstract contract TrustedCodehashAccess is ITrustedCodehashAccess, OwnableUpgrad /// @notice Whidelisted codehashes. mapping(bytes32 codehash => bool permission) private trustedCodehashes; /// @notice Gap for upgrade safety. - uint256[10] private __gap; + // solhint-disable-next-line + uint256[10] private __gap_TrustedcodehashAccess; /** * @notice Restricts access based on the codehash of the caller.