aboutsummaryrefslogtreecommitdiffstats
path: root/packages/web3-wrapper
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-12-07 06:15:15 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-12-07 06:15:15 +0800
commit825402b0f91ce266b310aed78e4fa73ae1359d36 (patch)
treec07c1da090112feccdacfa16e693386b963eeefd /packages/web3-wrapper
parentf1b267cc9fe7f6e5566dc2535b064b92aef92df1 (diff)
downloaddexon-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')
-rw-r--r--packages/web3-wrapper/package.json2
-rw-r--r--packages/web3-wrapper/src/index.ts6
2 files changed, 1 insertions, 7 deletions
diff --git a/packages/web3-wrapper/package.json b/packages/web3-wrapper/package.json
index dd1cd54fb..4eea7ed31 100644
--- a/packages/web3-wrapper/package.json
+++ b/packages/web3-wrapper/package.json
@@ -20,6 +20,7 @@
"homepage": "https://github.com/0xProject/0x.js/packages/web3-wrapper/README.md",
"devDependencies": {
"@0xproject/tslint-config": "^0.2.0",
+ "@0xproject/types": "^0.0.1",
"@types/lodash": "^4.14.86",
"npm-run-all": "^4.1.2",
"shx": "^0.2.2",
@@ -29,7 +30,6 @@
},
"dependencies": {
"@0xproject/utils": "^0.0.1",
- "@0xproject/types": "^0.0.1",
"bignumber.js": "~4.1.0",
"lodash": "^4.17.4",
"web3": "^0.20.0"
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