From 81c06202dd5676a107dc4b53e87dab6a7b41b958 Mon Sep 17 00:00:00 2001 From: imduchuyyy Date: Mon, 29 Dec 2025 14:53:59 +0700 Subject: [PATCH] feat: add constructor to disable initializers for implementation contract --- src/contracts/GPv2AllowListAuthentication.sol | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/contracts/GPv2AllowListAuthentication.sol b/src/contracts/GPv2AllowListAuthentication.sol index 47d593e6..a2e14980 100644 --- a/src/contracts/GPv2AllowListAuthentication.sol +++ b/src/contracts/GPv2AllowListAuthentication.sol @@ -30,6 +30,13 @@ contract GPv2AllowListAuthentication is /// @dev Event emitted when a solver gets removed. event SolverRemoved(address solver); + /// @dev Contract constructor that disables initializers for the + /// implementation contract. + constructor() { + // Disable initializers for the implementation contract + _disableInitializers(); + } + /// @dev Initialize the manager to a value. /// /// This method is a contract initializer that is called exactly once after