@t2000/cli 2.13.1 → 2.13.2

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.
@@ -22247,6 +22247,7 @@ var T2000 = class _T2000 extends import_index.default {
22247
22247
  const client = this.client;
22248
22248
  const signer = this._signer;
22249
22249
  const signerAddress = signer.getAddress();
22250
+ let paymentDigest;
22250
22251
  const mppx = Mppx.create({
22251
22252
  polyfill: false,
22252
22253
  methods: [sui({
@@ -22258,6 +22259,7 @@ var T2000 = class _T2000 extends import_index.default {
22258
22259
  },
22259
22260
  execute: async (tx) => {
22260
22261
  const result = await executeTx(client, signer, () => tx);
22262
+ paymentDigest = result.digest;
22261
22263
  return { digest: result.digest };
22262
22264
  }
22263
22265
  })]
@@ -22276,8 +22278,7 @@ var T2000 = class _T2000 extends import_index.default {
22276
22278
  } catch {
22277
22279
  body = null;
22278
22280
  }
22279
- const receiptHeader = response.headers.get("x-payment-receipt");
22280
- const paid = !!receiptHeader;
22281
+ const paid = !!paymentDigest;
22281
22282
  if (paid) {
22282
22283
  this.enforcer.recordUsage(options.maxPrice ?? 1);
22283
22284
  }
@@ -22286,7 +22287,7 @@ var T2000 = class _T2000 extends import_index.default {
22286
22287
  body,
22287
22288
  paid,
22288
22289
  cost: paid ? options.maxPrice ?? void 0 : void 0,
22289
- receipt: receiptHeader ? { reference: receiptHeader, timestamp: (/* @__PURE__ */ new Date()).toISOString() } : void 0
22290
+ receipt: paymentDigest ? { reference: paymentDigest, timestamp: (/* @__PURE__ */ new Date()).toISOString() } : void 0
22290
22291
  };
22291
22292
  }
22292
22293
  // -- VOLO vSUI Staking --
@@ -24340,4 +24341,4 @@ axios/dist/node/axios.cjs:
24340
24341
  @scure/bip39/index.js:
24341
24342
  (*! scure-bip39 - MIT License (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) *)
24342
24343
  */
24343
- //# sourceMappingURL=chunk-5GDUQVB4.js.map
24344
+ //# sourceMappingURL=chunk-QZEXNSBG.js.map