@msafe/sui3-sdk 0.0.42-pre-e22a1ab.0 → 0.0.42-pre-ea83f33.0

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
@@ -9204,14 +9204,14 @@ var MPayAppHelper = class {
9204
9204
  const result = decoder.decode();
9205
9205
  if (result.type === "CreateStream") {
9206
9206
  return {
9207
- txType: import_sui3_utils3.TransactionType.Other,
9207
+ txType: import_sui3_utils3.TransactionType.Stream,
9208
9208
  txSubType: result.type,
9209
9209
  intentionData: result.info
9210
9210
  };
9211
9211
  }
9212
9212
  if (result.type === "Claim") {
9213
9213
  return {
9214
- txType: import_sui3_utils3.TransactionType.Other,
9214
+ txType: import_sui3_utils3.TransactionType.Stream,
9215
9215
  txSubType: result.type,
9216
9216
  intentionData: {
9217
9217
  streamId: result.streamId
@@ -9220,7 +9220,7 @@ var MPayAppHelper = class {
9220
9220
  }
9221
9221
  if (result.type === "ClaimByProxy") {
9222
9222
  return {
9223
- txType: import_sui3_utils3.TransactionType.Other,
9223
+ txType: import_sui3_utils3.TransactionType.Stream,
9224
9224
  txSubType: result.type,
9225
9225
  intentionData: {
9226
9226
  streamId: result.streamId
@@ -9229,7 +9229,7 @@ var MPayAppHelper = class {
9229
9229
  }
9230
9230
  if (result.type === "SetAutoClaim") {
9231
9231
  return {
9232
- txType: import_sui3_utils3.TransactionType.Other,
9232
+ txType: import_sui3_utils3.TransactionType.Stream,
9233
9233
  txSubType: result.type,
9234
9234
  intentionData: {
9235
9235
  streamId: result.streamId,
@@ -9239,7 +9239,7 @@ var MPayAppHelper = class {
9239
9239
  }
9240
9240
  if (result.type === "Cancel") {
9241
9241
  return {
9242
- txType: import_sui3_utils3.TransactionType.Other,
9242
+ txType: import_sui3_utils3.TransactionType.Stream,
9243
9243
  txSubType: result.type,
9244
9244
  intentionData: {
9245
9245
  streamId: result.streamId
@@ -10480,7 +10480,7 @@ var BackendError2 = class _BackendError extends Error {
10480
10480
  return this.e.response?.status ?? void 0;
10481
10481
  }
10482
10482
  get message() {
10483
- return `Request to ${this.endpoint} failed: ${this.status} ${this.respMessage() ?? "Unknown resp"}`;
10483
+ return `${this.respMessage() ?? "Unknown resp"}`;
10484
10484
  }
10485
10485
  respMessage() {
10486
10486
  if (!this.e.response?.data) {