From 3b8a9545c1f6d56793dedc786a54ba50d289b8fe Mon Sep 17 00:00:00 2001 From: Nicholas Addison Date: Fri, 30 Sep 2022 06:03:52 +1000 Subject: [PATCH] fix: removed space between pragma solidity and the solidity version for flatten --- lib/parserEtherscan.js | 2 +- package-lock.json | 4 ++-- package.json | 2 +- src/ts/parserEtherscan.ts | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/parserEtherscan.js b/lib/parserEtherscan.js index fb7ff65f..697fc7ad 100644 --- a/lib/parserEtherscan.js +++ b/lib/parserEtherscan.js @@ -143,7 +143,7 @@ class EtherscanParser { const nonDependentFilenames = nonDependentFiles.map((f) => f.filename); debug(`Failed to find dependencies to files: ${nonDependentFilenames}`); const solidityVersion = (0, regEx_1.parseSolidityVersion)(compilerVersion); - let solidityCode = `pragma solidity = ${solidityVersion};\n`; + let solidityCode = `pragma solidity =${solidityVersion};\n`; // output non dependent code before the dependent files just in case sol2uml missed some dependencies const filenames = [...nonDependentFilenames, ...dependentFilenames]; // For each filename diff --git a/package-lock.json b/package-lock.json index da0808b6..13259473 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "sol2uml", - "version": "2.2.2", + "version": "2.2.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "sol2uml", - "version": "2.2.2", + "version": "2.2.3", "license": "MIT", "dependencies": { "@aduh95/viz.js": "^3.7.0", diff --git a/package.json b/package.json index 8e8683be..f745bcec 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sol2uml", - "version": "2.2.2", + "version": "2.2.3", "description": "Solidity contract visualisation tool.", "main": "./lib/index.js", "types": "./lib/index.d.ts", diff --git a/src/ts/parserEtherscan.ts b/src/ts/parserEtherscan.ts index 04cc1b09..6b8918ac 100644 --- a/src/ts/parserEtherscan.ts +++ b/src/ts/parserEtherscan.ts @@ -154,7 +154,7 @@ export class EtherscanParser { debug(`Failed to find dependencies to files: ${nonDependentFilenames}`) const solidityVersion = parseSolidityVersion(compilerVersion) - let solidityCode = `pragma solidity = ${solidityVersion};\n` + let solidityCode = `pragma solidity =${solidityVersion};\n` // output non dependent code before the dependent files just in case sol2uml missed some dependencies const filenames = [...nonDependentFilenames, ...dependentFilenames]