aboutsummaryrefslogtreecommitdiffstats
path: root/src/order_watcher/order_state_watcher.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-11-11 04:07:05 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-11-13 09:05:46 +0800
commite72ba39c41a86cd17a3115426ad579efbfe11ddc (patch)
tree6ae9fc6a204d05cc58568800d883ee5c09d5656d /src/order_watcher/order_state_watcher.ts
parentffcc4877638262b29c8a88535e9535da07428396 (diff)
downloaddexon-sol-tools-e72ba39c41a86cd17a3115426ad579efbfe11ddc.tar
dexon-sol-tools-e72ba39c41a86cd17a3115426ad579efbfe11ddc.tar.gz
dexon-sol-tools-e72ba39c41a86cd17a3115426ad579efbfe11ddc.tar.bz2
dexon-sol-tools-e72ba39c41a86cd17a3115426ad579efbfe11ddc.tar.lz
dexon-sol-tools-e72ba39c41a86cd17a3115426ad579efbfe11ddc.tar.xz
dexon-sol-tools-e72ba39c41a86cd17a3115426ad579efbfe11ddc.tar.zst
dexon-sol-tools-e72ba39c41a86cd17a3115426ad579efbfe11ddc.zip
Make orderStateUtils operate on stores
Diffstat (limited to 'src/order_watcher/order_state_watcher.ts')
-rw-r--r--src/order_watcher/order_state_watcher.ts9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/order_watcher/order_state_watcher.ts b/src/order_watcher/order_state_watcher.ts
index 4866f8409..ec7e69b72 100644
--- a/src/order_watcher/order_state_watcher.ts
+++ b/src/order_watcher/order_state_watcher.ts
@@ -164,16 +164,9 @@ export class OrderStateWatcher {
}
}
private async _emitRevalidateOrdersAsync(orderHashes: string[], blockNumber: number): Promise<void> {
- const defaultBlock = this._numConfirmations === 0 ?
- BlockParamLiteral.Pending :
- blockNumber;
- const methodOpts = {
- defaultBlock,
- };
-
for (const orderHash of orderHashes) {
const signedOrder = this._orderByOrderHash[orderHash] as SignedOrder;
- const orderState = await this._orderStateUtils.getOrderStateAsync(signedOrder, methodOpts);
+ const orderState = await this._orderStateUtils.getOrderStateAsync(signedOrder);
if (!_.isUndefined(this._callbackIfExistsAsync)) {
await this._callbackIfExistsAsync(orderState);
} else {