diff options
author | Fabio Berger <me@fabioberger.com> | 2018-11-12 17:25:33 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-11-12 17:25:33 +0800 |
commit | 8efc6c211246ec59a70d25754ccf1986944a5976 (patch) | |
tree | 0f4e10480227b9f5ab9ec85a0bee2c6601b61cf3 | |
parent | b21c1bea46a9fdd43680daf8b241c54d0483770b (diff) | |
download | dexon-0x-contracts-8efc6c211246ec59a70d25754ccf1986944a5976.tar dexon-0x-contracts-8efc6c211246ec59a70d25754ccf1986944a5976.tar.gz dexon-0x-contracts-8efc6c211246ec59a70d25754ccf1986944a5976.tar.bz2 dexon-0x-contracts-8efc6c211246ec59a70d25754ccf1986944a5976.tar.lz dexon-0x-contracts-8efc6c211246ec59a70d25754ccf1986944a5976.tar.xz dexon-0x-contracts-8efc6c211246ec59a70d25754ccf1986944a5976.tar.zst dexon-0x-contracts-8efc6c211246ec59a70d25754ccf1986944a5976.zip |
Remove unnecessary conversion to BigNumber
-rw-r--r-- | packages/contracts/test/utils/exchange_wrapper.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/contracts/test/utils/exchange_wrapper.ts b/packages/contracts/test/utils/exchange_wrapper.ts index 52322d5c4..c28989d3f 100644 --- a/packages/contracts/test/utils/exchange_wrapper.ts +++ b/packages/contracts/test/utils/exchange_wrapper.ts @@ -212,7 +212,7 @@ export class ExchangeWrapper { return tx; } public async getTakerAssetFilledAmountAsync(orderHashHex: string): Promise<BigNumber> { - const filledAmount = new BigNumber(await this._exchange.filled.callAsync(orderHashHex)); + const filledAmount = await this._exchange.filled.callAsync(orderHashHex); return filledAmount; } public async isCancelledAsync(orderHashHex: string): Promise<boolean> { @@ -220,7 +220,7 @@ export class ExchangeWrapper { return isCancelled; } public async getOrderEpochAsync(makerAddress: string, senderAddress: string): Promise<BigNumber> { - const orderEpoch = new BigNumber(await this._exchange.orderEpoch.callAsync(makerAddress, senderAddress)); + const orderEpoch = await this._exchange.orderEpoch.callAsync(makerAddress, senderAddress); return orderEpoch; } public async getOrderInfoAsync(signedOrder: SignedOrder): Promise<OrderInfo> { |