Commit d59a2970 authored by Alex Beregszaszi's avatar Alex Beregszaszi

Standard: include braces

parent c66af27e
...@@ -13,8 +13,7 @@ module.exports = function (self) { ...@@ -13,8 +13,7 @@ module.exports = function (self) {
importScripts(data.data); importScripts(data.data);
version = Module.cwrap("version", "string", []); version = Module.cwrap("version", "string", []);
if ('_compileJSONCallback' in Module) if ('_compileJSONCallback' in Module) {
{
var compileJSONInternal = Module.cwrap("compileJSONCallback", "string", ["string", "number", "number"]); var compileJSONInternal = Module.cwrap("compileJSONCallback", "string", ["string", "number", "number"]);
var missingInputCallback = Module.Runtime.addFunction(function (path) { var missingInputCallback = Module.Runtime.addFunction(function (path) {
missingInputs.push(Module.Pointer_stringify(path)); missingInputs.push(Module.Pointer_stringify(path));
...@@ -22,11 +21,11 @@ module.exports = function (self) { ...@@ -22,11 +21,11 @@ module.exports = function (self) {
compileJSON = function (input, optimize) { compileJSON = function (input, optimize) {
return compileJSONInternal(input, optimize, missingInputCallback); return compileJSONInternal(input, optimize, missingInputCallback);
}; };
} } else if ('_compileJSONMulti' in Module) {
else if ('_compileJSONMulti' in Module)
compileJSON = Module.cwrap("compileJSONMulti", "string", ["string", "number"]); compileJSON = Module.cwrap("compileJSONMulti", "string", ["string", "number"]);
else } else {
compileJSON = Module.cwrap("compileJSON", "string", ["string", "number"]); compileJSON = Module.cwrap("compileJSON", "string", ["string", "number"]);
}
postMessage({ postMessage({
cmd: 'versionLoaded', cmd: 'versionLoaded',
data: version(), data: version(),
......
...@@ -130,8 +130,9 @@ function Renderer (editor, compiler, updateFiles) { ...@@ -130,8 +130,9 @@ function Renderer (editor, compiler, updateFiles) {
.append(tableRow('Solidity Interface', contract.solidity_interface)) .append(tableRow('Solidity Interface', contract.solidity_interface))
.append(tableRow('Opcodes', contract.opcodes)); .append(tableRow('Opcodes', contract.opcodes));
var funHashes = ''; var funHashes = '';
for (var fun in contract.functionHashes) for (var fun in contract.functionHashes) {
funHashes += contract.functionHashes[fun] + ' ' + fun + '\n'; funHashes += contract.functionHashes[fun] + ' ' + fun + '\n';
}
details.append($('<span class="col1">Functions</span>')); details.append($('<span class="col1">Functions</span>'));
details.append($('<pre/>').text(funHashes)); details.append($('<pre/>').text(funHashes));
details.append($('<span class="col1">Gas Estimates</span>')); details.append($('<span class="col1">Gas Estimates</span>'));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment