From 2e2a59596de27988baec83222c7540c2064e22ce Mon Sep 17 00:00:00 2001 From: Marek Kotewicz Date: Thu, 14 May 2015 14:18:35 +0200 Subject: [PATCH] migration from web3.js 0.3.x -> 0.4.2 --- mix/qml/html/WebContainer.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mix/qml/html/WebContainer.html b/mix/qml/html/WebContainer.html index 9c458a4c7..cd92852a7 100644 --- a/mix/qml/html/WebContainer.html +++ b/mix/qml/html/WebContainer.html @@ -23,8 +23,7 @@ updateContracts = function(contracts) { window.contracts = {}; window.BigNumber = require('bignumber.js'); for (var c in contracts) { - var contractProto = window.web3.eth.contract(contracts[c].interface); - var contract = new contractProto(contracts[c].address); + var contract = window.web3.eth.contract(contracts[c].interface).at(contracts[c].address); window.contracts[c] = { address: contracts[c].address, interface: contracts[c].interface,