Use this.defaultBlock in OrderFilledCancelledLazyStore
This commit is contained in:
parent
7d957538b4
commit
8fc1b38ff2
@ -26,7 +26,7 @@ export class OrderFilledCancelledLazyStore implements OrderFilledCancelledFetche
|
|||||||
public async getFilledTakerAmountAsync(orderHash: string): Promise<BigNumber> {
|
public async getFilledTakerAmountAsync(orderHash: string): Promise<BigNumber> {
|
||||||
if (_.isUndefined(this._filledTakerAmount[orderHash])) {
|
if (_.isUndefined(this._filledTakerAmount[orderHash])) {
|
||||||
const methodOpts = {
|
const methodOpts = {
|
||||||
defaultBlock: BlockParamLiteral.Pending,
|
defaultBlock: this._defaultBlock,
|
||||||
};
|
};
|
||||||
const filledTakerAmount = await this._exchangeWrapper.getFilledTakerAmountAsync(orderHash, methodOpts);
|
const filledTakerAmount = await this._exchangeWrapper.getFilledTakerAmountAsync(orderHash, methodOpts);
|
||||||
this.setFilledTakerAmount(orderHash, filledTakerAmount);
|
this.setFilledTakerAmount(orderHash, filledTakerAmount);
|
||||||
@ -43,7 +43,7 @@ export class OrderFilledCancelledLazyStore implements OrderFilledCancelledFetche
|
|||||||
public async getCancelledTakerAmountAsync(orderHash: string): Promise<BigNumber> {
|
public async getCancelledTakerAmountAsync(orderHash: string): Promise<BigNumber> {
|
||||||
if (_.isUndefined(this._cancelledTakerAmount[orderHash])) {
|
if (_.isUndefined(this._cancelledTakerAmount[orderHash])) {
|
||||||
const methodOpts = {
|
const methodOpts = {
|
||||||
defaultBlock: BlockParamLiteral.Pending,
|
defaultBlock: this._defaultBlock,
|
||||||
};
|
};
|
||||||
const cancelledTakerAmount = await this._exchangeWrapper.getCancelledTakerAmountAsync(orderHash, methodOpts);
|
const cancelledTakerAmount = await this._exchangeWrapper.getCancelledTakerAmountAsync(orderHash, methodOpts);
|
||||||
this.setCancelledTakerAmount(orderHash, cancelledTakerAmount);
|
this.setCancelledTakerAmount(orderHash, cancelledTakerAmount);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user