sol2uml 2.2.2 → 2.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/parserEtherscan.js +1 -1
- package/package.json +1 -1
package/lib/parserEtherscan.js
CHANGED
|
@@ -143,7 +143,7 @@ class EtherscanParser {
|
|
|
143
143
|
const nonDependentFilenames = nonDependentFiles.map((f) => f.filename);
|
|
144
144
|
debug(`Failed to find dependencies to files: ${nonDependentFilenames}`);
|
|
145
145
|
const solidityVersion = (0, regEx_1.parseSolidityVersion)(compilerVersion);
|
|
146
|
-
let solidityCode = `pragma solidity
|
|
146
|
+
let solidityCode = `pragma solidity =${solidityVersion};\n`;
|
|
147
147
|
// output non dependent code before the dependent files just in case sol2uml missed some dependencies
|
|
148
148
|
const filenames = [...nonDependentFilenames, ...dependentFilenames];
|
|
149
149
|
// For each filename
|