MCPcopy Create free account
hub / github.com/argotorg/solidity / loadSource

Function loadSource

scripts/bytecodecompare/prepare_report.js:14–23  ·  view source on GitHub ↗
(sourceFileName, stripSMTPragmas)

Source from the content-addressed store, hash-verified

12}
13
14function loadSource(sourceFileName, stripSMTPragmas)
15{
16 source = fs.readFileSync(sourceFileName).toString()
17
18 if (stripSMTPragmas)
19 // NOTE: replace() with string parameter replaces only the first occurrence.
20 return source.replace('pragma experimental SMTChecker;', '');
21
22 return source
23}
24
25function cleanString(string)
26{

Callers 2

buildMethod · 0.85
prepare_report.jsFile · 0.85

Calls 2

replaceMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected