aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-11-12 17:25:33 +0800
committerFabio Berger <me@fabioberger.com>2018-11-12 17:25:33 +0800
commit8efc6c211246ec59a70d25754ccf1986944a5976 (patch)
tree0f4e10480227b9f5ab9ec85a0bee2c6601b61cf3
parentb21c1bea46a9fdd43680daf8b241c54d0483770b (diff)
downloaddexon-sol-tools-8efc6c211246ec59a70d25754ccf1986944a5976.tar
dexon-sol-tools-8efc6c211246ec59a70d25754ccf1986944a5976.tar.gz
dexon-sol-tools-8efc6c211246ec59a70d25754ccf1986944a5976.tar.bz2
dexon-sol-tools-8efc6c211246ec59a70d25754ccf1986944a5976.tar.lz
dexon-sol-tools-8efc6c211246ec59a70d25754ccf1986944a5976.tar.xz
dexon-sol-tools-8efc6c211246ec59a70d25754ccf1986944a5976.tar.zst
dexon-sol-tools-8efc6c211246ec59a70d25754ccf1986944a5976.zip
Remove unnecessary conversion to BigNumber
-rw-r--r--packages/contracts/test/utils/exchange_wrapper.ts4
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> {