Merge pull request #142 from cubedro/develop

Updated to web3 v0.4.3
This commit is contained in:
Marian OANCΞA 2015-05-26 19:41:44 +03:00
commit bca81f32ee
2 changed files with 1 additions and 21 deletions

View File

@ -736,31 +736,11 @@ Node.prototype.setWatches = function()
}, PING_INTERVAL);
}
Node.prototype.installContract = function()
{
var start = _.now();
try {
Contract = web3.eth.contract( registrar.desc );
this._Registrar = new Contract( registrar.address );
console.success('Installed Registrar contract in', chalk.reset.cyan(_.now() - start, 'ms'));
}
catch (err)
{
console.error("!!!", "eth", "Couldn't set up registrar contract");
console.error(err);
}
}
Node.prototype.init = function()
{
// Fetch node info
this.getInfo();
// Install Registrar contract
this.installContract();
// Start socket connection
this.startSocketConnection();

View File

@ -17,7 +17,7 @@
"primus-emit": "0.1.2",
"primus-spark-latency": "0.1.1",
"shelljs": "0.4.0",
"web3": "0.3.4",
"web3": "0.4.3",
"ws": "0.7.1"
},
"scripts": {