Skip to content

Commit

Permalink
also remove from storage
Browse files Browse the repository at this point in the history
  • Loading branch information
oXtxNt9U committed Dec 20, 2024
1 parent 6fc370d commit 694849c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ export class RemoveTransactionHandler {
@inject(Identifiers.TransactionPool.Mempool)
private readonly mempool!: Contracts.TransactionPool.Mempool;

@inject(Identifiers.TransactionPool.Storage)
private readonly storage!: Contracts.TransactionPool.Storage;

public async handle(address: string, id: string): Promise<void> {
await this.mempool.removeTransaction(address, id);
this.storage.removeTransaction(id);
}
}

0 comments on commit 694849c

Please sign in to comment.