Be prepared when the interface output won't have a trailing new-line

pull/1/head
Alex Beregszaszi 8 years ago
parent 396abd2bd2
commit 22e70ef7fe
  1. 2
      src/app/renderer.js

@ -77,7 +77,7 @@ function Renderer (editor, executionContext, updateFiles, transactionDebugger) {
if (contract.bytecode) { if (contract.bytecode) {
$contractOutput.append(textRow('Bytecode', contract.bytecode)); $contractOutput.append(textRow('Bytecode', contract.bytecode));
} }
if (contract['interface'] !== '[]\n') { if ((contract['interface'] !== '[]\n') && (contract['interface'] !== '[]')) {
$contractOutput.append(textRow('Interface', contract['interface'])); $contractOutput.append(textRow('Interface', contract['interface']));
} }
if (contract.bytecode) { if (contract.bytecode) {

Loading…
Cancel
Save