diff options
author | Bryan Stitt <bryan@stitthappens.com> | 2018-11-13 01:10:40 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-13 01:10:40 +0800 |
commit | 789f57345298f2700a56f329ba0873c1f623ce8b (patch) | |
tree | 51b04785b13a9945ffdd15d0b67f564163a146d0 /packages/contracts/test/utils/exchange_wrapper.ts | |
parent | 22f217807d44e364cad6ebe90560326a755cdd11 (diff) | |
parent | 0ebbbdfca49028f196853bbfb082a1378c09f441 (diff) | |
download | dexon-0x-contracts-789f57345298f2700a56f329ba0873c1f623ce8b.tar dexon-0x-contracts-789f57345298f2700a56f329ba0873c1f623ce8b.tar.gz dexon-0x-contracts-789f57345298f2700a56f329ba0873c1f623ce8b.tar.bz2 dexon-0x-contracts-789f57345298f2700a56f329ba0873c1f623ce8b.tar.lz dexon-0x-contracts-789f57345298f2700a56f329ba0873c1f623ce8b.tar.xz dexon-0x-contracts-789f57345298f2700a56f329ba0873c1f623ce8b.tar.zst dexon-0x-contracts-789f57345298f2700a56f329ba0873c1f623ce8b.zip |
Merge branch 'development' into patch-1
Diffstat (limited to 'packages/contracts/test/utils/exchange_wrapper.ts')
-rw-r--r-- | packages/contracts/test/utils/exchange_wrapper.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/contracts/test/utils/exchange_wrapper.ts b/packages/contracts/test/utils/exchange_wrapper.ts index 29dba690a..c28989d3f 100644 --- a/packages/contracts/test/utils/exchange_wrapper.ts +++ b/packages/contracts/test/utils/exchange_wrapper.ts @@ -212,13 +212,17 @@ 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> { const isCancelled = await this._exchange.cancelled.callAsync(orderHashHex); return isCancelled; } + public async getOrderEpochAsync(makerAddress: string, senderAddress: string): Promise<BigNumber> { + const orderEpoch = await this._exchange.orderEpoch.callAsync(makerAddress, senderAddress); + return orderEpoch; + } public async getOrderInfoAsync(signedOrder: SignedOrder): Promise<OrderInfo> { const orderInfo = (await this._exchange.getOrderInfo.callAsync(signedOrder)) as OrderInfo; return orderInfo; |