From 56724aecd4430af9ee40433e7491bf8aa3d1ee86 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Mon, 11 Jun 2018 17:22:08 -0400 Subject: [PATCH] lint is king --- lib/tests/test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/tests/test.js b/lib/tests/test.js index f52f4d760..cd20b65e1 100644 --- a/lib/tests/test.js +++ b/lib/tests/test.js @@ -225,12 +225,12 @@ class Test { }); }, function getBalance(accounts, next) { - web3.eth.getBalance(web3.eth.defaultAccount).then((balance) => { - if (parseInt(balance) === 0) { + self.web3.eth.getBalance(self.web3.eth.defaultAccount).then((balance) => { + if (parseInt(balance, 10) === 0) { console.warn("Warning: default account has no funds"); } next(null, accounts); - }).catch((err) => { next(err) }); + }).catch((err) => { next(err); }); }, function deploy(accounts, next) { self.engine.deployManager.gasLimit = 6000000;