Skip to content

Commit

Permalink
fix(protocol): allow AddressManager to reference self (#17070)
Browse files Browse the repository at this point in the history
  • Loading branch information
dantaik committed May 10, 2024
1 parent 2fa3ae0 commit 9fbfb84
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/protocol/contracts/common/AddressManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ contract AddressManager is EssentialContract, IAddressManager {
/// @param _owner The owner of this contract. msg.sender will be used if this value is zero.
function init(address _owner) external initializer {
__Essential_init(_owner);
addressManager = address(this);
}

/// @notice Sets the address for a specific chainId-name pair.
Expand Down

0 comments on commit 9fbfb84

Please sign in to comment.