We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e4df18 commit 086374aCopy full SHA for 086374a
packages/sequencer/src/mempool/private/PrivateMempool.ts
@@ -28,7 +28,9 @@ export class PrivateMempool extends SequencerModule implements Mempool {
28
const success = await this.transactionStorage.pushUserTransaction(tx);
29
if (success) {
30
this.events.emit("mempool-transaction-added", tx);
31
+ return true;
32
}
33
+ throw new Error("Failed to add transaction to mempool");
34
35
throw new Error(`Valdiation of tx failed: ${error ?? "unknown error"}`);
36
0 commit comments