From db67ec55e65d669516dc8b9c422852b1e2474d9b Mon Sep 17 00:00:00 2001 From: bitsnaps Date: Fri, 9 Mar 2018 12:26:04 +0100 Subject: [PATCH] typo on ths change `ths` to `this` --- src/shared.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared.js b/src/shared.js index f68ab82..667c11a 100644 --- a/src/shared.js +++ b/src/shared.js @@ -36,7 +36,7 @@ class Shared { switch(typeof(contract)) { case "object": if(contract.address) { - return this.web3.fromWei(ths.web3.eth.getBalance(contract.address), 'ether').toNumber(); + return this.web3.fromWei(this.web3.eth.getBalance(contract.address), 'ether').toNumber(); } else { return new Error("cannot call getEtherBalance on an object that does not have a property 'address'"); }