From 20406ba51ab591be7c712159da61d81d4bb67a83 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Wed, 18 Jul 2018 17:47:53 +0300 Subject: [PATCH] fix lint --- lib/cmds/blockchain/dev_funds.js | 10 +++++----- lib/contracts/fundAccount.js | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/cmds/blockchain/dev_funds.js b/lib/cmds/blockchain/dev_funds.js index 09f6b3ef..99bb71d8 100644 --- a/lib/cmds/blockchain/dev_funds.js +++ b/lib/cmds/blockchain/dev_funds.js @@ -1,7 +1,7 @@ const async = require('async'); const Web3 = require('web3'); -const { getWeiBalanceFromString, buildUrl } = require('../../utils/utils.js'); -const { readFileSync, dappPath } = require('../../core/fs'); +const {getWeiBalanceFromString, buildUrl} = require('../../utils/utils.js'); +const {readFileSync, dappPath} = require('../../core/fs'); class DevFunds { constructor(blockchainConfig) { @@ -36,7 +36,7 @@ class DevFunds { return; } - setInterval(function() { self._sendTx() }, 3000); + setInterval(function() { self._sendTx(); }, 3000); if (cb) { cb(); } @@ -45,12 +45,12 @@ class DevFunds { regularUnlocks() { const self = this; - setInterval(function() { self.unlockAccounts(self.password, () => {}) }, 20000); + setInterval(function() { self.unlockAccounts(self.password, () => {}); }, 20000); } connectToNode(cb) { - this.web3.setProvider(new Web3.providers.WebsocketProvider(buildUrl('ws', this.blockchainConfig.wsHost, this.blockchainConfig.wsPort), { headers: { Origin: "http://localhost:8000" } })); + this.web3.setProvider(new Web3.providers.WebsocketProvider(buildUrl('ws', this.blockchainConfig.wsHost, this.blockchainConfig.wsPort), {headers: {Origin: "http://localhost:8000"}})); this.web3.eth.getAccounts().then((accounts) => { this.web3.eth.defaultAccount = accounts[0]; diff --git a/lib/contracts/fundAccount.js b/lib/contracts/fundAccount.js index b4fdaec9..980c8eec 100644 --- a/lib/contracts/fundAccount.js +++ b/lib/contracts/fundAccount.js @@ -47,7 +47,7 @@ function fundAccount(web3, accountAddress, hexBalance, nonce, callback) { }); }, function getNonce(next) { - web3.eth.getTransactionCount(coinbaseAddress, (err, nonce) => { + web3.eth.getTransactionCount(coinbaseAddress, (err, _nonce) => { if (err) { return next(err); }