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

Function flatContracts

scripts/compareStorageLayout.js:131–137  ·  view source on GitHub ↗
(_paths, _logic)

Source from the content-addressed store, hash-verified

129};
130
131async function flatContracts(_paths, _logic) {
132 let promises = new Array();
133 for (let i = 0; i < _paths.length; i++) {
134 promises.push(await exec(`./node_modules/.bin/sol-merger ${_paths[i]} ./flat`));
135 }
136 await Promise.all(promises);
137}
138
139async function getAST(_filePath) {
140 await exec(`solc -o temp --ast-json ${_filePath}`, {maxBuffer: 1024 * 1000});

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected