@@ -15,7 +15,7 @@ contract DiamondLoupeFacet is IDiamondLoupe {
1515 /// @notice Gets all facet addresses and their function selectors.
1616 /// @return facets_ Facet
1717 function facets () external view returns (Facet[] memory facets_ ) {
18- DiamondStorage storage ds = LibDiamond.diamondStorage ();
18+ DiamondStorage storage ds = LibDiamond._diamondStorage ();
1919 uint256 facetCount = ds.facetAddresses.length ;
2020 facets_ = new Facet [](facetCount);
2121 for (uint256 i; i < facetCount;) {
@@ -37,21 +37,21 @@ contract DiamondLoupeFacet is IDiamondLoupe {
3737 override
3838 returns (bytes4 [] memory facetFunctionSelectors_ )
3939 {
40- facetFunctionSelectors_ = LibDiamond.diamondStorage ().facetToSelectorsAndPosition[_facet].functionSelectors;
40+ facetFunctionSelectors_ = LibDiamond._diamondStorage ().facetToSelectorsAndPosition[_facet].functionSelectors;
4141 }
4242
4343 /// @notice Get all the facet addresses used by a diamond.
4444 /// @return facetAddresses_
4545 function facetAddresses () external view override returns (address [] memory facetAddresses_ ) {
46- facetAddresses_ = LibDiamond.diamondStorage ().facetAddresses;
46+ facetAddresses_ = LibDiamond._diamondStorage ().facetAddresses;
4747 }
4848
4949 /// @notice Gets the facet that supports the given selector.
5050 /// @dev If facet is not found return address(0).
5151 /// @param _functionSelector The function selector.
5252 /// @return facetAddress_ The facet address.
5353 function facetAddress (bytes4 _functionSelector ) external view override returns (address facetAddress_ ) {
54- facetAddress_ = LibDiamond.diamondStorage ().selectorToFacetAndPosition[_functionSelector].facetAddress;
54+ facetAddress_ = LibDiamond._diamondStorage ().selectorToFacetAndPosition[_functionSelector].facetAddress;
5555 }
5656
5757 /// @notice Query if a contract implements an interface
@@ -61,6 +61,6 @@ contract DiamondLoupeFacet is IDiamondLoupe {
6161 /// @return `true` if the contract implements `interfaceID` and
6262 /// `interfaceID` is not 0xffffffff, `false` otherwise
6363 function supportsInterface (bytes4 _interfaceId ) external view returns (bool ) {
64- return LibDiamond.diamondStorage ().supportedInterfaces[_interfaceId];
64+ return LibDiamond._diamondStorage ().supportedInterfaces[_interfaceId];
6565 }
6666}
0 commit comments