diff --git a/src/app/compiler-worker.js b/src/app/compiler-worker.js index 1ed0999fe2..cf8625e9ea 100644 --- a/src/app/compiler-worker.js +++ b/src/app/compiler-worker.js @@ -13,8 +13,7 @@ module.exports = function (self) { importScripts(data.data); version = Module.cwrap("version", "string", []); - if ('_compileJSONCallback' in Module) - { + if ('_compileJSONCallback' in Module) { var compileJSONInternal = Module.cwrap("compileJSONCallback", "string", ["string", "number", "number"]); var missingInputCallback = Module.Runtime.addFunction(function (path) { missingInputs.push(Module.Pointer_stringify(path)); @@ -22,11 +21,11 @@ module.exports = function (self) { compileJSON = function (input, optimize) { return compileJSONInternal(input, optimize, missingInputCallback); }; - } - else if ('_compileJSONMulti' in Module) + } else if ('_compileJSONMulti' in Module) { compileJSON = Module.cwrap("compileJSONMulti", "string", ["string", "number"]); - else + } else { compileJSON = Module.cwrap("compileJSON", "string", ["string", "number"]); + } postMessage({ cmd: 'versionLoaded', data: version(), diff --git a/src/app/renderer.js b/src/app/renderer.js index 480349b084..b852390b51 100644 --- a/src/app/renderer.js +++ b/src/app/renderer.js @@ -130,8 +130,9 @@ function Renderer (editor, compiler, updateFiles) { .append(tableRow('Solidity Interface', contract.solidity_interface)) .append(tableRow('Opcodes', contract.opcodes)); var funHashes = ''; - for (var fun in contract.functionHashes) + for (var fun in contract.functionHashes) { funHashes += contract.functionHashes[fun] + ' ' + fun + '\n'; + } details.append($('Functions')); details.append($('
').text(funHashes));
     details.append($('Gas Estimates'));