From 8723bd227841f2ad6807aa5cfb8a3c270af2ccb7 Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 7 Feb 2017 15:38:30 +0100 Subject: [PATCH] fix geth deploy --- src/app/renderer.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/renderer.js b/src/app/renderer.js index 8cabfc70d6..02822f049e 100644 --- a/src/app/renderer.js +++ b/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' }) + contractName = contractName.replace(/[:./]/g, '_') code += 'var ' + contractName + 'Contract = web3.eth.contract(' + jsonInterface.replace('\n', '') + ');' + '\nvar ' + contractName + ' = ' + contractName + 'Contract.new('