diff options
Diffstat (limited to 'src/order_watcher')
-rw-r--r-- | src/order_watcher/event_watcher.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/order_watcher/event_watcher.ts b/src/order_watcher/event_watcher.ts index 471dcd21a..f1a2b5729 100644 --- a/src/order_watcher/event_watcher.ts +++ b/src/order_watcher/event_watcher.ts @@ -53,8 +53,9 @@ export class EventWatcher { fromBlock = BlockParamLiteral.Pending; toBlock = BlockParamLiteral.Pending; } else { - toBlock = await this._web3Wrapper.getBlockNumberAsync(); - fromBlock = toBlock - numConfirmations; + const currentBlock = await this._web3Wrapper.getBlockNumberAsync(); + toBlock = currentBlock - numConfirmations; + fromBlock = currentBlock - numConfirmations; } const eventFilter = { fromBlock, |