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

Function readFiles

scripts/calculateSize.js:7–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5const { table } = require("table");
6
7async function readFiles() {
8 if (fs.existsSync("./build/contracts/")) {
9 return fs.readdirSync("./build/contracts/");
10 } else {
11 console.log('Compiling contracts. This may take a while, please wait.');
12 exec('truffle compile');
13 return fs.readdirSync("./build/contracts/");
14 }
15}
16
17async function printSize() {
18 let files = await readFiles();

Callers 1

printSizeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected