diff --git a/src/local.js b/src/local.js index 2ac0119..1cf0c9a 100644 --- a/src/local.js +++ b/src/local.js @@ -71,7 +71,7 @@ class Local { 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'"); }