From b7bd29ce2041c30f7567b11566c424777fd0cc35 Mon Sep 17 00:00:00 2001 From: Daniel Wang <99078276+dantaik@users.noreply.github.com> Date: Fri, 10 May 2024 14:42:44 +0800 Subject: [PATCH] fix(protocol): fix address manager init (#17075) --- packages/protocol/contracts/common/AddressManager.sol | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/protocol/contracts/common/AddressManager.sol b/packages/protocol/contracts/common/AddressManager.sol index 96cb84be4a1..5f0e1c1d378 100644 --- a/packages/protocol/contracts/common/AddressManager.sol +++ b/packages/protocol/contracts/common/AddressManager.sol @@ -30,6 +30,10 @@ contract AddressManager is EssentialContract, IAddressManager { addressManager = address(this); } + function init2() external onlyOwner reinitializer(2) { + addressManager = address(this); + } + /// @notice Sets the address for a specific chainId-name pair. /// @param _chainId The chainId to which the address will be mapped. /// @param _name The name to which the address will be mapped.