diff --git a/src/app/tabs/compile-tab.js b/src/app/tabs/compile-tab.js index 15e8784409..3b189bce8e 100644 --- a/src/app/tabs/compile-tab.js +++ b/src/app/tabs/compile-tab.js @@ -7,6 +7,7 @@ const copy = require('clipboard-copy') var parseContracts = require('../contract/contractParser') var publishOnSwarm = require('../contract/publishOnSwarm') var modalDialog = require('../ui/modaldialog') +var TreeView = require('ethereum-remix').ui.TreeView // -------------- styling ---------------------- var csjs = require('csjs-inject') @@ -351,7 +352,12 @@ function compileTab (container, appAPI, appEvents, opts) { var value = yo`
`
       var node
       if (x === 'bytecode' || x === 'metadataHash' || x === 'swarmLocation' || x === 'Runtime Bytecode' || x === 'Opcodes') {
-        node = yo`
${JSON.stringify((details[x].slice(1, 40) + '...'), null, 4)}
` + node = yo`
${details[x]}
` + } else if (x === 'web3Deploy') { + node = yo`
${details[x]}
` + } else if (x === 'interface' || x === 'metadata') { + var treeView = new TreeView({}) + node = yo`
${treeView.render(JSON.parse(details[x]))}
` } else { node = yo`
${JSON.stringify(details[x], null, 4)}
` }