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'"); }