Address Manager

addressManager

getAddress

Query the address for a given contract, _name.

/// @notice Get `_name` parameters from events log
event AddressSet(
    string indexed _name, 
    address _newAddress, 
    address _oldAddress
);
function getAddress(
        string memory _name
) 

return _addresses[_getNameHash(_name)]

addressResolver

Get the address of addressManager.

function getAddressManager()

return IAddressManager(
    _getAddressResolverStorage().addressManager
)

Last updated