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

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.
@@ -4957,6 +4957,9 @@ var SimpleXyoGatewayRunner = class _SimpleXyoGatewayRunner extends AbstractCreat
4957
4957
  const [hash] = await this.addPayloadsToChain([transfer], [], options);
4958
4958
  return hash;
4959
4959
  }
4960
+ transactionRequiredGas(hydratedTransaction) {
4961
+ return transactionRequiredGas(hydratedTransaction);
4962
+ }
4960
4963
  };
4961
4964
 
4962
4965
  // src/simple/mempool/SimpleMempoolRunner.ts
@@ -5198,11 +5201,12 @@ var SimpleMempoolRunner = class extends AbstractCreatableProvider {
5198
5201
  const failures = [];
5199
5202
  for (const [i, result] of validationResults.entries()) {
5200
5203
  if (!isSignedHydratedTransactionWithHashMeta(result)) {
5201
- failures.push({ hash: hashedTransactions[i][0]._hash, errors: result });
5204
+ failures.push({ tx: hashedTransactions[i], errors: result });
5202
5205
  }
5203
5206
  }
5204
5207
  if (failures.length > 0) {
5205
- const detail = failures.map((f) => `${f.hash}: ${f.errors.map((e) => e.message).join("; ")}`).join(" | ");
5208
+ await Promise.all(failures.map((f) => this.routeRejectedTransaction(f.tx, f.errors)));
5209
+ const detail = failures.map((f) => `${f.tx[0]._hash}: ${f.errors.map((e) => e.message).join("; ")}`).join(" | ");
5206
5210
  throw new Error(`SimpleMempoolRunner: rejected ${failures.length} transaction(s) at admission: ${detail}`);
5207
5211
  }
5208
5212
  }