diff --git a/src/chains/ethereum/src/components/transaction-pool.ts b/src/chains/ethereum/src/components/transaction-pool.ts index f73912e423..800d25c53d 100644 --- a/src/chains/ethereum/src/components/transaction-pool.ts +++ b/src/chains/ethereum/src/components/transaction-pool.ts @@ -153,8 +153,8 @@ export default class TransactionPool extends Emittery.Typed<{}, "drain"> { transaction.sign(secretKey.toBuffer()); } - // if it is executable add it to the executables queue if (isExecutableTransaction) { + // if it is executable add it to the executables queue if (executableOriginTransactions) { executableOriginTransactions.push(transaction); } else { @@ -166,6 +166,7 @@ export default class TransactionPool extends Emittery.Typed<{}, "drain"> { this.#drainQueued(origin, queuedOriginTransactions, executableOriginTransactions, transactionNonce); return true; } else { + // otherwise, put it in the future queue if (queuedOriginTransactions) { queuedOriginTransactions.push(transaction); } else {