Commit 7d9f7fba authored by Alex Beregszaszi's avatar Alex Beregszaszi

Only display the relevant gas estimate fields

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