Skip to content

Commit

Permalink
fallthrough clear option in state.add()
Browse files Browse the repository at this point in the history
  • Loading branch information
Intizar-T committed May 28, 2024
1 parent 81a50c8 commit 6fbfd79
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions core/src/listener/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,11 +199,6 @@ export class State {
if (observedBlock.service === '') {
switch (this.listenerInitType) {
case 'clear':
// Clear metadata about previously observed blocks for a specific
// `contractAddress`.
await upsertObservedBlock({ service: this.service, blockNumber: latestBlock - 1 })
break

case 'latest':
await upsertObservedBlock({ service: this.service, blockNumber: latestBlock - 1 })
break
Expand Down

0 comments on commit 6fbfd79

Please sign in to comment.