mirror of https://github.com/embarklabs/embark.git
jshint it
This commit is contained in:
parent
8711b75462
commit
8a1fd3a165
|
@ -10,7 +10,7 @@ var DeployTracker = function(options) {
|
||||||
if (this.chainConfig === false) {
|
if (this.chainConfig === false) {
|
||||||
this.currentChain = {contracts: []};
|
this.currentChain = {contracts: []};
|
||||||
return;
|
return;
|
||||||
};
|
}
|
||||||
|
|
||||||
var block = this.web3.eth.getBlock(0);
|
var block = this.web3.eth.getBlock(0);
|
||||||
var chainId = block.hash;
|
var chainId = block.hash;
|
||||||
|
@ -46,7 +46,7 @@ DeployTracker.prototype.getContract = function(contractName, code, args) {
|
||||||
// TODO: abstract this
|
// TODO: abstract this
|
||||||
// chainConfig can be an abstract PersistentObject
|
// chainConfig can be an abstract PersistentObject
|
||||||
DeployTracker.prototype.save = function() {
|
DeployTracker.prototype.save = function() {
|
||||||
if (this.chainConfig === false) { return };
|
if (this.chainConfig === false) { return; }
|
||||||
fs.writeFileSync("./chains.json", prettyJson(this.chainConfig));
|
fs.writeFileSync("./chains.json", prettyJson(this.chainConfig));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue