Browse Source

Ensure abi is parsed to follow the flow

Juan Blanco 1 year ago
parent
commit
dda24fef1d
3 changed files with 2 additions and 2 deletions
  1. 1 1
      package.json
  2. BIN
      solidity-0.0.70.vsix
  3. 1 1
      src/codegen.ts

+ 1 - 1
package.json

@@ -10,7 +10,7 @@
     "nethereum",
     "solhint"
   ],
-  "version": "0.0.69",
+  "version": "0.0.70",
   "publisher": "JuanBlanco",
   "engines": {
     "vscode": "^1.30.0"

BIN
solidity-0.0.70.vsix


+ 1 - 1
src/codegen.ts

@@ -161,7 +161,7 @@ export function codeGenerateCQS(fileName: string, lang: number, args: any, diagn
         const contractName = outputPathInfo.name;
         let compilationOutput;
         if (outputPathInfo.ext === '.abi') {
-            const abi = fs.readFileSync(fileName, 'utf8');
+            const abi = JSON.parse(fs.readFileSync(fileName, 'utf8'));
             compilationOutput = { 'abi': abi, 'bytecode': '0x' };
             const binFile = fileName.substr(0, fileName.lastIndexOf('.')) + '.bin';
             if (fs.existsSync(binFile)) {