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