mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-11 22:34:24 +00:00
lint is king
This commit is contained in:
parent
4aab8cd374
commit
56724aecd4
@ -225,12 +225,12 @@ class Test {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
function getBalance(accounts, next) {
|
function getBalance(accounts, next) {
|
||||||
web3.eth.getBalance(web3.eth.defaultAccount).then((balance) => {
|
self.web3.eth.getBalance(self.web3.eth.defaultAccount).then((balance) => {
|
||||||
if (parseInt(balance) === 0) {
|
if (parseInt(balance, 10) === 0) {
|
||||||
console.warn("Warning: default account has no funds");
|
console.warn("Warning: default account has no funds");
|
||||||
}
|
}
|
||||||
next(null, accounts);
|
next(null, accounts);
|
||||||
}).catch((err) => { next(err) });
|
}).catch((err) => { next(err); });
|
||||||
},
|
},
|
||||||
function deploy(accounts, next) {
|
function deploy(accounts, next) {
|
||||||
self.engine.deployManager.gasLimit = 6000000;
|
self.engine.deployManager.gasLimit = 6000000;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user