aboutsummaryrefslogtreecommitdiffstats
path: root/src/web3_wrapper.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/web3_wrapper.ts')
-rw-r--r--src/web3_wrapper.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/web3_wrapper.ts b/src/web3_wrapper.ts
index 6bdca499f..afecbec7f 100644
--- a/src/web3_wrapper.ts
+++ b/src/web3_wrapper.ts
@@ -36,7 +36,8 @@ export class Web3Wrapper {
}
public async getBalanceInEthAsync(owner: string): Promise<BigNumber.BigNumber> {
const balanceInWei = await promisify(this.web3.eth.getBalance)(owner);
- const balanceEth = this.web3.fromWei(balanceInWei, 'ether');
+ let balanceEth = this.web3.fromWei(balanceInWei, 'ether');
+ balanceEth = new BigNumber(balanceEth);
return balanceEth;
}
public async doesContractExistAtAddressAsync(address: string): Promise<boolean> {