This commit is contained in:
Iuri Matias 2018-07-18 17:53:37 +03:00
parent c1809e3752
commit 0099078e94
2 changed files with 3 additions and 3 deletions

View File

@ -74,7 +74,7 @@ class DevFunds {
unlockAccounts(password, cb) {
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();
}).catch(next);
}, cb);
@ -87,7 +87,7 @@ class DevFunds {
const remainingBalance = balance - currBalance;
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();
}).catch(next);
}, cb);

View File

@ -48,7 +48,7 @@ function fundAccount(web3, accountAddress, hexBalance, callback) {
});
},
function getNonce(next) {
web3.eth.getTransactionCount(coinbaseAddress, (err, _nonce) => {
web3.eth.getTransactionCount(coinbaseAddress, (err, nonce) => {
if (err) {
return next(err);
}