MCPcopy Create free account
hub / github.com/PolymathNetwork/polymath-core / findPath

Function findPath

scripts/compareStorageLayout.js:117–129  ·  view source on GitHub ↗
(logicContractName, proxyContractName, fileList)

Source from the content-addressed store, hash-verified

115};
116
117var findPath = function(logicContractName, proxyContractName, fileList) {
118 let paths = new Array();
119 for (let i = 0; i < fileList.length; i++) {
120 if (
121 logicContractName === path.basename(fileList[i]) ||
122 logicContractName === path.basename(fileList[i]).split(".")[0] ||
123 (proxyContractName === path.basename(fileList[i]) || proxyContractName === path.basename(fileList[i]).split(".")[0])
124 ) {
125 paths.push(fileList[i]);
126 }
127 }
128 return paths;
129};
130
131async function flatContracts(_paths, _logic) {
132 let promises = new Array();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected