fix geth deploy

pull/1/head
yann300 8 years ago
parent bf7258a2d4
commit 8723bd2278
  1. 1
      src/app/renderer.js

@ -165,6 +165,7 @@ Renderer.prototype.contracts = function (data, source) {
code += 'var ' + inp.name + ' = /* var of type ' + inp.type + ' here */ ;\n' code += 'var ' + inp.name + ' = /* var of type ' + inp.type + ' here */ ;\n'
}) })
contractName = contractName.replace(/[:./]/g, '_')
code += 'var ' + contractName + 'Contract = web3.eth.contract(' + jsonInterface.replace('\n', '') + ');' + code += 'var ' + contractName + 'Contract = web3.eth.contract(' + jsonInterface.replace('\n', '') + ');' +
'\nvar ' + contractName + ' = ' + contractName + 'Contract.new(' '\nvar ' + contractName + ' = ' + contractName + 'Contract.new('

Loading…
Cancel
Save