@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.
- package/dist/neutral/index.mjs +6 -2
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/neutral/simple/gateway/SimpleXyoGatewayRunner.d.ts +2 -1
- package/dist/neutral/simple/gateway/SimpleXyoGatewayRunner.d.ts.map +1 -1
- package/dist/neutral/simple/mempool/SimpleMempoolRunner.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/neutral/index.mjs
CHANGED
|
@@ -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({
|
|
5204
|
+
failures.push({ tx: hashedTransactions[i], errors: result });
|
|
5202
5205
|
}
|
|
5203
5206
|
}
|
|
5204
5207
|
if (failures.length > 0) {
|
|
5205
|
-
|
|
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
|
}
|