Skip to content

Commit 20406ba

Browse files
committed
fix lint
1 parent 5e3740f commit 20406ba

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/cmds/blockchain/dev_funds.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const async = require('async');
22
const Web3 = require('web3');
3-
const { getWeiBalanceFromString, buildUrl } = require('../../utils/utils.js');
4-
const { readFileSync, dappPath } = require('../../core/fs');
3+
const {getWeiBalanceFromString, buildUrl} = require('../../utils/utils.js');
4+
const {readFileSync, dappPath} = require('../../core/fs');
55

66
class DevFunds {
77
constructor(blockchainConfig) {
@@ -36,7 +36,7 @@ class DevFunds {
3636
return;
3737
}
3838

39-
setInterval(function() { self._sendTx() }, 3000);
39+
setInterval(function() { self._sendTx(); }, 3000);
4040
if (cb) {
4141
cb();
4242
}
@@ -45,12 +45,12 @@ class DevFunds {
4545

4646
regularUnlocks() {
4747
const self = this;
48-
setInterval(function() { self.unlockAccounts(self.password, () => {}) }, 20000);
48+
setInterval(function() { self.unlockAccounts(self.password, () => {}); }, 20000);
4949
}
5050

5151
connectToNode(cb) {
5252

53-
this.web3.setProvider(new Web3.providers.WebsocketProvider(buildUrl('ws', this.blockchainConfig.wsHost, this.blockchainConfig.wsPort), { headers: { Origin: "http://localhost:8000" } }));
53+
this.web3.setProvider(new Web3.providers.WebsocketProvider(buildUrl('ws', this.blockchainConfig.wsHost, this.blockchainConfig.wsPort), {headers: {Origin: "http://localhost:8000"}}));
5454

5555
this.web3.eth.getAccounts().then((accounts) => {
5656
this.web3.eth.defaultAccount = accounts[0];

lib/contracts/fundAccount.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function fundAccount(web3, accountAddress, hexBalance, nonce, callback) {
4747
});
4848
},
4949
function getNonce(next) {
50-
web3.eth.getTransactionCount(coinbaseAddress, (err, nonce) => {
50+
web3.eth.getTransactionCount(coinbaseAddress, (err, _nonce) => {
5151
if (err) {
5252
return next(err);
5353
}

0 commit comments

Comments
 (0)