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

Function readFiles

scripts/clashCheck.js:6–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4const Web3 = require('web3');
5
6async function readFiles() {
7 if (fs.existsSync("./build/contracts/")) {
8 return fs.readdirSync("./build/contracts/");
9 } else {
10 console.log(chalk.yellow('Compiling contracts. This may take a while, please wait.'));
11 exec('truffle compile');
12 return fs.readdirSync("./build/contracts/");
13 }
14}
15
16async function checkClashes() {
17 console.log(chalk.green("Starting function selector clash check"));

Callers 1

checkClashesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected