mirror of https://github.com/embarklabs/embark.git
fix lint
This commit is contained in:
parent
c1809e3752
commit
0099078e94
|
@ -74,7 +74,7 @@ class DevFunds {
|
||||||
|
|
||||||
unlockAccounts(password, cb) {
|
unlockAccounts(password, cb) {
|
||||||
async.each(this.accounts, (account, next) => {
|
async.each(this.accounts, (account, next) => {
|
||||||
this.web3.eth.personal.unlockAccount(account, password).then((result) => {
|
this.web3.eth.personal.unlockAccount(account, password).then((_result) => {
|
||||||
next();
|
next();
|
||||||
}).catch(next);
|
}).catch(next);
|
||||||
}, cb);
|
}, cb);
|
||||||
|
@ -87,7 +87,7 @@ class DevFunds {
|
||||||
const remainingBalance = balance - currBalance;
|
const remainingBalance = balance - currBalance;
|
||||||
if (remainingBalance <= 0) return next();
|
if (remainingBalance <= 0) return next();
|
||||||
|
|
||||||
this.web3.eth.sendTransaction({to: account, value: remainingBalance}).then((result) => {
|
this.web3.eth.sendTransaction({to: account, value: remainingBalance}).then((_result) => {
|
||||||
next();
|
next();
|
||||||
}).catch(next);
|
}).catch(next);
|
||||||
}, cb);
|
}, cb);
|
||||||
|
|
|
@ -48,7 +48,7 @@ function fundAccount(web3, accountAddress, hexBalance, callback) {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
function getNonce(next) {
|
function getNonce(next) {
|
||||||
web3.eth.getTransactionCount(coinbaseAddress, (err, _nonce) => {
|
web3.eth.getTransactionCount(coinbaseAddress, (err, nonce) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
return next(err);
|
return next(err);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue