From 8fc1b38ff20cf1b528070ecc824b4696d93a2e0f Mon Sep 17 00:00:00 2001 From: Ara Kevonian Date: Tue, 17 Apr 2018 06:51:26 -0700 Subject: Use this.defaultBlock in OrderFilledCancelledLazyStore --- packages/0x.js/src/stores/order_filled_cancelled_lazy_store.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages/0x.js') diff --git a/packages/0x.js/src/stores/order_filled_cancelled_lazy_store.ts b/packages/0x.js/src/stores/order_filled_cancelled_lazy_store.ts index eebc2b52c..7f3da6e1d 100644 --- a/packages/0x.js/src/stores/order_filled_cancelled_lazy_store.ts +++ b/packages/0x.js/src/stores/order_filled_cancelled_lazy_store.ts @@ -26,7 +26,7 @@ export class OrderFilledCancelledLazyStore implements OrderFilledCancelledFetche public async getFilledTakerAmountAsync(orderHash: string): Promise { if (_.isUndefined(this._filledTakerAmount[orderHash])) { const methodOpts = { - defaultBlock: BlockParamLiteral.Pending, + defaultBlock: this._defaultBlock, }; const filledTakerAmount = await this._exchangeWrapper.getFilledTakerAmountAsync(orderHash, methodOpts); this.setFilledTakerAmount(orderHash, filledTakerAmount); @@ -43,7 +43,7 @@ export class OrderFilledCancelledLazyStore implements OrderFilledCancelledFetche public async getCancelledTakerAmountAsync(orderHash: string): Promise { if (_.isUndefined(this._cancelledTakerAmount[orderHash])) { const methodOpts = { - defaultBlock: BlockParamLiteral.Pending, + defaultBlock: this._defaultBlock, }; const cancelledTakerAmount = await this._exchangeWrapper.getCancelledTakerAmountAsync(orderHash, methodOpts); this.setCancelledTakerAmount(orderHash, cancelledTakerAmount); -- cgit v1.2.3