Commit 22e70ef7 authored by Alex Beregszaszi's avatar Alex Beregszaszi

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

parent 396abd2b
...@@ -77,7 +77,7 @@ function Renderer (editor, executionContext, updateFiles, transactionDebugger) { ...@@ -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) {
......
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