Skip to content

Commit

Permalink
Remove contracts on reset watcher (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikugogoi authored Nov 4, 2022
1 parent 266442a commit 0e46438
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/util/src/indexer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -994,6 +994,8 @@ export class Indexer {
await this._db.deleteEntitiesByConditions(dbTx, entity, { blockNumber: MoreThan(blockNumber) });
}

await this._db.deleteEntitiesByConditions(dbTx, 'contract', { startingBlock: MoreThan(blockNumber) });

await this._db.deleteEntitiesByConditions(dbTx, 'block_progress', { blockNumber: MoreThan(blockNumber) });

const syncStatus = await this.getSyncStatus();
Expand Down

0 comments on commit 0e46438

Please sign in to comment.