Browse Source

migration from web3.js 0.3.x -> 0.4.2

cl-refactor
Marek Kotewicz 10 years ago
parent
commit
2e2a59596d
  1. 3
      mix/qml/html/WebContainer.html

3
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,

Loading…
Cancel
Save