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