@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.
@@ -139269,6 +139269,7 @@ var T2000 = class _T2000 extends import_index2.default {
139269
139269
  const client = this.client;
139270
139270
  const signer = this._signer;
139271
139271
  const signerAddress = signer.getAddress();
139272
+ let paymentDigest;
139272
139273
  const mppx = Mppx.create({
139273
139274
  polyfill: false,
139274
139275
  methods: [sui2({
@@ -139280,6 +139281,7 @@ var T2000 = class _T2000 extends import_index2.default {
139280
139281
  },
139281
139282
  execute: async (tx) => {
139282
139283
  const result = await executeTx(client, signer, () => tx);
139284
+ paymentDigest = result.digest;
139283
139285
  return { digest: result.digest };
139284
139286
  }
139285
139287
  })]
@@ -139298,8 +139300,7 @@ var T2000 = class _T2000 extends import_index2.default {
139298
139300
  } catch {
139299
139301
  body = null;
139300
139302
  }
139301
- const receiptHeader = response.headers.get("x-payment-receipt");
139302
- const paid = !!receiptHeader;
139303
+ const paid = !!paymentDigest;
139303
139304
  if (paid) {
139304
139305
  this.enforcer.recordUsage(options.maxPrice ?? 1);
139305
139306
  }
@@ -139308,7 +139309,7 @@ var T2000 = class _T2000 extends import_index2.default {
139308
139309
  body,
139309
139310
  paid,
139310
139311
  cost: paid ? options.maxPrice ?? void 0 : void 0,
139311
- receipt: receiptHeader ? { reference: receiptHeader, timestamp: (/* @__PURE__ */ new Date()).toISOString() } : void 0
139312
+ receipt: paymentDigest ? { reference: paymentDigest, timestamp: (/* @__PURE__ */ new Date()).toISOString() } : void 0
139312
139313
  };
139313
139314
  }
139314
139315
  // -- VOLO vSUI Staking --
@@ -141800,7 +141801,7 @@ ${context}
141800
141801
  })
141801
141802
  );
141802
141803
  }
141803
- var PKG_VERSION = "2.13.1";
141804
+ var PKG_VERSION = "2.13.2";
141804
141805
  console.log = (...args) => console.error("[log]", ...args);
141805
141806
  console.warn = (...args) => console.error("[warn]", ...args);
141806
141807
  async function startMcpServer(opts) {
@@ -141891,4 +141892,4 @@ axios/dist/node/axios.cjs:
141891
141892
  @scure/bip39/index.js:
141892
141893
  (*! scure-bip39 - MIT License (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) *)
141893
141894
  */
141894
- //# sourceMappingURL=dist-GFSZZXA7.js.map
141895
+ //# sourceMappingURL=dist-23HNABJP.js.map