This commit is contained in:
Fabio Berger
2017-11-23 13:56:16 -06:00
parent c66fc63452
commit bcc5d63516

View File

@@ -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);