@weblock-wallet/sdk 0.1.60 → 0.1.61

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
@@ -104756,8 +104756,13 @@ var WalletService = class {
104756
104756
  await LocalForage.delete(STORAGE_KEYS.share2(this.orgHost));
104757
104757
  return txHash;
104758
104758
  } catch (error) {
104759
+ if (error instanceof SDKError) {
104760
+ throw error;
104761
+ }
104762
+ const anyErr = error;
104763
+ const causeMsg = anyErr?.shortMessage || anyErr?.reason || anyErr?.message || anyErr?.error?.message || "Unknown error";
104759
104764
  throw new SDKError(
104760
- "Transaction failed",
104765
+ `Transaction failed: ${causeMsg}`,
104761
104766
  "TRANSACTION_FAILED" /* TRANSACTION_FAILED */,
104762
104767
  error
104763
104768
  );