From cd61d7476dffea21f5953697f7dc64e246571cd8 Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 16 Jul 2015 17:34:39 +0200 Subject: [PATCH] bug fix --- mix/qml/js/NetworkDeployment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mix/qml/js/NetworkDeployment.js b/mix/qml/js/NetworkDeployment.js index d9527c550..42cbf5207 100644 --- a/mix/qml/js/NetworkDeployment.js +++ b/mix/qml/js/NetworkDeployment.js @@ -287,7 +287,7 @@ function packageDapp(addresses) "\taddress: \"" + addresses[c] + "\"\n" + "};\n" + contractAccessor + ".contractClass = web3.eth.contract(" + contractAccessor + ".interface);\n" + - contractAccessor + ".contract = new " + contractAccessor + ".contractClass(" + contractAccessor + ".address);\n"; + contractAccessor + ".contract = " + contractAccessor + ".contractClass.at(" + contractAccessor + ".address);\n"; } fileIo.writeFile(deploymentDir + "deployment.js", deploymentJs); deploymentAddresses = addresses;