diff options
author | Fabio Berger <me@fabioberger.com> | 2017-11-24 03:56:16 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-11-24 03:56:16 +0800 |
commit | bcc5d635169e3202a5c46cb2995ff51c8482a36c (patch) | |
tree | c3ecb81adacc9de75fbaf49bbbff0b54b2689ee9 /packages/website/ts | |
parent | c66fc634529962bc06a9cfa60633e1bc3c538153 (diff) | |
download | dexon-sol-tools-bcc5d635169e3202a5c46cb2995ff51c8482a36c.tar.gz dexon-sol-tools-bcc5d635169e3202a5c46cb2995ff51c8482a36c.tar.zst dexon-sol-tools-bcc5d635169e3202a5c46cb2995ff51c8482a36c.zip |
Fix bug
Diffstat (limited to 'packages/website/ts')
-rw-r--r-- | packages/website/ts/blockchain.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/website/ts/blockchain.ts b/packages/website/ts/blockchain.ts index 3a1b62164..9be764917 100644 --- a/packages/website/ts/blockchain.ts +++ b/packages/website/ts/blockchain.ts @@ -496,7 +496,7 @@ export class Blockchain { this.stopWatchingExchangeLogFillEventsAsync(); // fire and forget return; } else { - if (this.doesLogEventInvolveUser(decodedLogEvent)) { + if (!this.doesLogEventInvolveUser(decodedLogEvent)) { return; // We aren't interested in the fill event } this.updateLatestFillsBlockIfNeeded(decodedLogEvent.blockNumber); @@ -519,7 +519,7 @@ export class Blockchain { ExchangeEvents.LogFill, subscriptionOpts, indexFilterValues, ); for (const decodedLog of decodedLogs) { - if (this.doesLogEventInvolveUser(decodedLog)) { + if (!this.doesLogEventInvolveUser(decodedLog)) { continue; // We aren't interested in the fill event } this.updateLatestFillsBlockIfNeeded(decodedLog.blockNumber); |