@xyo-network/xl1-protocol-sdk 1.29.6 → 1.29.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5198,11 +5198,12 @@ var SimpleMempoolRunner = class extends AbstractCreatableProvider {
5198
5198
  const failures = [];
5199
5199
  for (const [i, result] of validationResults.entries()) {
5200
5200
  if (!isSignedHydratedTransactionWithHashMeta(result)) {
5201
- failures.push({ hash: hashedTransactions[i][0]._hash, errors: result });
5201
+ failures.push({ tx: hashedTransactions[i], errors: result });
5202
5202
  }
5203
5203
  }
5204
5204
  if (failures.length > 0) {
5205
- const detail = failures.map((f) => `${f.hash}: ${f.errors.map((e) => e.message).join("; ")}`).join(" | ");
5205
+ await Promise.all(failures.map((f) => this.routeRejectedTransaction(f.tx, f.errors)));
5206
+ const detail = failures.map((f) => `${f.tx[0]._hash}: ${f.errors.map((e) => e.message).join("; ")}`).join(" | ");
5206
5207
  throw new Error(`SimpleMempoolRunner: rejected ${failures.length} transaction(s) at admission: ${detail}`);
5207
5208
  }
5208
5209
  }