diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-12-07 06:15:15 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-12-07 06:15:15 +0800 |
commit | 825402b0f91ce266b310aed78e4fa73ae1359d36 (patch) | |
tree | c07c1da090112feccdacfa16e693386b963eeefd /packages/web3-wrapper/src/index.ts | |
parent | f1b267cc9fe7f6e5566dc2535b064b92aef92df1 (diff) | |
download | dexon-sol-tools-825402b0f91ce266b310aed78e4fa73ae1359d36.tar dexon-sol-tools-825402b0f91ce266b310aed78e4fa73ae1359d36.tar.gz dexon-sol-tools-825402b0f91ce266b310aed78e4fa73ae1359d36.tar.bz2 dexon-sol-tools-825402b0f91ce266b310aed78e4fa73ae1359d36.tar.lz dexon-sol-tools-825402b0f91ce266b310aed78e4fa73ae1359d36.tar.xz dexon-sol-tools-825402b0f91ce266b310aed78e4fa73ae1359d36.tar.zst dexon-sol-tools-825402b0f91ce266b310aed78e4fa73ae1359d36.zip |
Address feedback
Diffstat (limited to 'packages/web3-wrapper/src/index.ts')
-rw-r--r-- | packages/web3-wrapper/src/index.ts | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/packages/web3-wrapper/src/index.ts b/packages/web3-wrapper/src/index.ts index 9b37e5a0d..b823c5c15 100644 --- a/packages/web3-wrapper/src/index.ts +++ b/packages/web3-wrapper/src/index.ts @@ -74,12 +74,6 @@ export class Web3Wrapper { balanceInWei = new BigNumber(balanceInWei); return balanceInWei; } - public async getBalanceInEthAsync(owner: string): Promise<BigNumber> { - const balanceInWei = await this.getBalanceInWeiAsync(owner); - const balanceEthOldBigNumber = this.web3.fromWei(balanceInWei, 'ether'); - const balanceEth = new BigNumber(balanceEthOldBigNumber); - return balanceEth; - } public async doesContractExistAtAddressAsync(address: string): Promise<boolean> { const code = await promisify<string>(this.web3.eth.getCode)(address); // Regex matches 0x0, 0x00, 0x in order to accommodate poorly implemented clients |