Skip to content

Commit 7b4d11f

Browse files
authored
fix: remove unused constants and add gap (#1519)
<!-- 🚨 ATTENTION! 🚨 This PR template is REQUIRED. PRs not following this format will be closed without review. Requirements: - PR title must follow commit conventions: https://www.conventionalcommits.org/en/v1.0.0/ - Label your PR with the correct type (e.g., πŸ› Bug, ✨ Enhancement, πŸ§ͺ Test, etc.) - Provide clear and specific details in each section --> **Motivation:** Fix missing gap and cleanup unused constants **Modifications:** *Describe the modifications you've done.* **Result:** *After your change, what will change.*
1 parent 0bb381d commit 7b4d11f

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

β€Žsrc/contracts/multichain/ECDSACertificateVerifierStorage.solβ€Ž

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,11 @@ abstract contract ECDSACertificateVerifierStorage is IECDSACertificateVerifier {
5050
) {
5151
operatorTableUpdater = _operatorTableUpdater;
5252
}
53+
54+
/**
55+
* @dev This empty reserved space is put in place to allow future versions to add new
56+
* variables without shifting down storage in the inheritance chain.
57+
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
58+
*/
59+
uint256[45] private __gap;
5360
}

β€Žsrc/contracts/permissions/KeyRegistrarStorage.solβ€Ž

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,6 @@ import "../interfaces/IAllocationManager.sol";
55
import "../interfaces/IKeyRegistrar.sol";
66

77
abstract contract KeyRegistrarStorage is IKeyRegistrar {
8-
// Constants
9-
10-
/// @dev Gas limit for pairing operations to prevent DoS
11-
uint256 internal constant PAIRING_EQUALITY_CHECK_GAS = 400_000;
12-
13-
/// @dev Hash of zero ECDSA public key (0x04 + 64 zero bytes)
14-
bytes32 internal constant ZERO_ECDSA_PUBKEY_HASH = keccak256(abi.encodePacked(bytes1(0x04), new bytes(64)));
15-
168
// Immutables
179

1810
/// @dev Reference to the AllocationManager contract

0 commit comments

Comments
Β (0)