Only display the relevant gas estimate fields

pull/1/head
Alex Beregszaszi 8 years ago
parent 22e70ef7fe
commit 7d9f7fbae9
  1. 7
      src/app/renderer.js

@ -175,14 +175,21 @@ function Renderer (editor, executionContext, updateFiles, transactionDebugger) {
if ('creation' in data) {
text += 'Creation: ' + gasToText(data.creation[0]) + ' + ' + gasToText(data.creation[1]) + '\n';
}
if ('external' in data) {
text += 'External:\n';
for (fun in data.external) {
text += ' ' + fun + ': ' + gasToText(data.external[fun]) + '\n';
}
}
if ('internal' in data) {
text += 'Internal:\n';
for (fun in data.internal) {
text += ' ' + fun + ': ' + gasToText(data.internal[fun]) + '\n';
}
}
return text;
};

Loading…
Cancel
Save