MCPcopy Create free account
hub / github.com/ChainSafe/Delorean-Protocol / findAddressPositionInFacets

Function findAddressPositionInFacets

contracts/scripts/js/diamond.js:71–77  ·  view source on GitHub ↗
(facetAddress, facets)

Source from the content-addressed store, hash-verified

69
70// find a particular address position in the return value of diamondLoupeFacet.facets()
71function findAddressPositionInFacets(facetAddress, facets) {
72 for (let i = 0; i < facets.length; i++) {
73 if (facets[i].facetAddress === facetAddress) {
74 return i
75 }
76 }
77}
78
79exports.getSelectors = getSelectors
80exports.getSelector = getSelector

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected