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

Function getAST

scripts/compareStorageLayout.js:139–142  ·  view source on GitHub ↗
(_filePath)

Source from the content-addressed store, hash-verified

137}
138
139async function getAST(_filePath) {
140 await exec(`solc -o temp --ast-json ${_filePath}`, {maxBuffer: 1024 * 1000});
141 return JSON.parse(fs.readFileSync(`./temp/${path.basename(_filePath)}_json.ast`, "utf8").toString());
142}
143
144async function flushTemp() {
145 await exec(`rm -rf temp`);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected