diff options
author | Fabio Berger <me@fabioberger.com> | 2018-05-10 21:22:51 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-05-10 21:22:51 +0800 |
commit | 13a61db2896074a939baa1769abef4c4917d4354 (patch) | |
tree | 5e91f3aa705a3c7f03bef7c94cb9a7441702bd60 /packages/contract-wrappers | |
parent | 93b74cc766523173c055f0882471d552cfa03271 (diff) | |
download | dexon-sol-tools-13a61db2896074a939baa1769abef4c4917d4354.tar dexon-sol-tools-13a61db2896074a939baa1769abef4c4917d4354.tar.gz dexon-sol-tools-13a61db2896074a939baa1769abef4c4917d4354.tar.bz2 dexon-sol-tools-13a61db2896074a939baa1769abef4c4917d4354.tar.lz dexon-sol-tools-13a61db2896074a939baa1769abef4c4917d4354.tar.xz dexon-sol-tools-13a61db2896074a939baa1769abef4c4917d4354.tar.zst dexon-sol-tools-13a61db2896074a939baa1769abef4c4917d4354.zip |
Add var returns
Diffstat (limited to 'packages/contract-wrappers')
-rw-r--r-- | packages/contract-wrappers/src/fetchers/simple_order_filled_cancelled_fetcher.ts | 8 | ||||
-rw-r--r-- | packages/contract-wrappers/src/stores/order_filled_cancelled_lazy_store.ts | 8 |
2 files changed, 10 insertions, 6 deletions
diff --git a/packages/contract-wrappers/src/fetchers/simple_order_filled_cancelled_fetcher.ts b/packages/contract-wrappers/src/fetchers/simple_order_filled_cancelled_fetcher.ts index b6f31b205..52d0a100c 100644 --- a/packages/contract-wrappers/src/fetchers/simple_order_filled_cancelled_fetcher.ts +++ b/packages/contract-wrappers/src/fetchers/simple_order_filled_cancelled_fetcher.ts @@ -25,10 +25,12 @@ export class SimpleOrderFilledCancelledFetcher implements AbstractOrderFilledCan const cancelledTakerAmount = this._exchangeWrapper.getCancelledTakerAmountAsync(orderHash, methodOpts); return cancelledTakerAmount; } - public async getUnavailableTakerAmountAsync(orderHash: string) { - return this._exchangeWrapper.getUnavailableTakerAmountAsync(orderHash); + public async getUnavailableTakerAmountAsync(orderHash: string): Promise<BigNumber> { + const unavailableTakerAmount = await this._exchangeWrapper.getUnavailableTakerAmountAsync(orderHash); + return unavailableTakerAmount; } public getZRXTokenAddress(): string { - return this._exchangeWrapper.getZRXTokenAddress(); + const zrxToken = this._exchangeWrapper.getZRXTokenAddress(); + return zrxToken; } } diff --git a/packages/contract-wrappers/src/stores/order_filled_cancelled_lazy_store.ts b/packages/contract-wrappers/src/stores/order_filled_cancelled_lazy_store.ts index b554191a2..3d96a95f3 100644 --- a/packages/contract-wrappers/src/stores/order_filled_cancelled_lazy_store.ts +++ b/packages/contract-wrappers/src/stores/order_filled_cancelled_lazy_store.ts @@ -64,10 +64,12 @@ export class OrderFilledCancelledLazyStore implements AbstractOrderFilledCancell this._filledTakerAmount = {}; this._cancelledTakerAmount = {}; } - public async getUnavailableTakerAmountAsync(orderHash: string) { - return this._exchangeWrapper.getUnavailableTakerAmountAsync(orderHash); + public async getUnavailableTakerAmountAsync(orderHash: string): Promise<BigNumber> { + const unavailableTakerAmount = await this._exchangeWrapper.getUnavailableTakerAmountAsync(orderHash); + return unavailableTakerAmount; } public getZRXTokenAddress(): string { - return this._exchangeWrapper.getZRXTokenAddress(); + const zrxToken = this._exchangeWrapper.getZRXTokenAddress(); + return zrxToken; } } |