aboutsummaryrefslogtreecommitdiffstats
path: root/src/web3_wrapper.ts
diff options
context:
space:
mode:
authorLeonid <logvinov.leon@gmail.com>2017-10-26 04:04:31 +0800
committerGitHub <noreply@github.com>2017-10-26 04:04:31 +0800
commite78398862b5e7bb08d15590c9bd0c656994b2a1f (patch)
treed1a719dd67857d2555369d9b377518061798b597 /src/web3_wrapper.ts
parentfa3e88c454e8d25fe8725dc7bf8ea35d6c3e33ab (diff)
parent122a5e9b63b5b3617ad63a56b0673fd9dd974208 (diff)
downloaddexon-sol-tools-e78398862b5e7bb08d15590c9bd0c656994b2a1f.tar
dexon-sol-tools-e78398862b5e7bb08d15590c9bd0c656994b2a1f.tar.gz
dexon-sol-tools-e78398862b5e7bb08d15590c9bd0c656994b2a1f.tar.bz2
dexon-sol-tools-e78398862b5e7bb08d15590c9bd0c656994b2a1f.tar.lz
dexon-sol-tools-e78398862b5e7bb08d15590c9bd0c656994b2a1f.tar.xz
dexon-sol-tools-e78398862b5e7bb08d15590c9bd0c656994b2a1f.tar.zst
dexon-sol-tools-e78398862b5e7bb08d15590c9bd0c656994b2a1f.zip
Merge pull request #202 from 0xProject/fix/bignumber-types
Bignumber types
Diffstat (limited to 'src/web3_wrapper.ts')
-rw-r--r--src/web3_wrapper.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/web3_wrapper.ts b/src/web3_wrapper.ts
index ff5d25d9c..3b1e4477b 100644
--- a/src/web3_wrapper.ts
+++ b/src/web3_wrapper.ts
@@ -1,6 +1,6 @@
import * as _ from 'lodash';
import * as Web3 from 'web3';
-import * as BigNumber from 'bignumber.js';
+import BigNumber from 'bignumber.js';
import promisify = require('es6-promisify');
import {ZeroExError, Artifact} from './types';
import {Contract} from './contract';
@@ -75,11 +75,11 @@ export class Web3Wrapper {
);
return contractInstance;
}
- public toWei(ethAmount: BigNumber.BigNumber): BigNumber.BigNumber {
+ public toWei(ethAmount: BigNumber): BigNumber {
const balanceWei = this.web3.toWei(ethAmount, 'ether');
return balanceWei;
}
- public async getBalanceInWeiAsync(owner: string): Promise<BigNumber.BigNumber> {
+ public async getBalanceInWeiAsync(owner: string): Promise<BigNumber> {
let balanceInWei = await promisify(this.web3.eth.getBalance)(owner);
balanceInWei = new BigNumber(balanceInWei);
return balanceInWei;