@t2000/sdk 0.18.22 → 0.18.23

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/index.js CHANGED
@@ -56198,6 +56198,20 @@ async function executeWithGas(client, keypair, buildTx, options) {
56198
56198
  } catch (err) {
56199
56199
  errors.push(`auto-topup: ${err instanceof Error ? err.message : String(err)}`);
56200
56200
  }
56201
+ try {
56202
+ const tx = await buildTx();
56203
+ const result = await trySelfFunded(client, keypair, tx);
56204
+ if (result) {
56205
+ await waitForIndexer(client, result.digest);
56206
+ return result;
56207
+ }
56208
+ } catch (err) {
56209
+ const msg = err instanceof Error ? err.message : String(err);
56210
+ if (isMoveAbort(msg)) {
56211
+ throw new T2000Error("TRANSACTION_FAILED", parseMoveAbortMessage(msg));
56212
+ }
56213
+ errors.push(`self-funded-retry: ${msg}`);
56214
+ }
56201
56215
  try {
56202
56216
  const tx = await buildTx();
56203
56217
  const result = await trySponsored(client, keypair, tx);