Change contract detail fields to input

pull/1/head
Alex Beregszaszi 8 years ago
parent 93a068a59f
commit cdfb8c7313
  1. 7
      src/app/renderer.js

@ -88,14 +88,15 @@ Renderer.prototype.contracts = function (data, source) {
var renderOutputModifier = function (contractName, $contractOutput) {
var contract = data.contracts[contractName]
if (contract.bytecode) {
$contractOutput.append(uiHelper.textRow('Bytecode', contract.bytecode))
$contractOutput.append(uiHelper.tableRow('Bytecode', contract.bytecode))
}
$contractOutput.append(uiHelper.textRow('Interface', contract['interface']))
$contractOutput.append(uiHelper.tableRow('Interface', contract['interface']))
if (contract.bytecode) {
$contractOutput.append(uiHelper.textRow('Web3 deploy', uiHelper.gethDeploy(contractName.toLowerCase(), contract['interface'], contract.bytecode), 'deploy'))
$contractOutput.append(uiHelper.preRow('Web3 deploy', uiHelper.gethDeploy(contractName.toLowerCase(), contract['interface'], contract.bytecode), 'deploy'))
}
var ctrSource = getSource(contractName, source, data)
return $contractOutput.append(uiHelper.getDetails(contract, ctrSource, contractName))
}

Loading…
Cancel
Save