@hardkas/accounts 0.12.0-rc.24 → 0.12.0-rc.25

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -1
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -784,8 +784,10 @@ var KaspaSdkKeyGenerator = class {
784
784
  try {
785
785
  return await rawLoader();
786
786
  } catch (e) {
787
+ if (e?.code === "WASM_TOOLCHAIN_NOT_INSTALLED" || e?.code === "WASM_TOOLCHAIN_INTEGRITY_FAILED") throw e;
787
788
  const err = new Error(
788
- "WALLET_BACKEND_UNAVAILABLE: Kaspa cryptography adapter missing. Real account generation requires WASM execution.\nUse 'hardkas accounts real import' to add a test fixture manually for now."
789
+ `WALLET_BACKEND_UNAVAILABLE: the Kaspa WASM SDK could not be loaded, so real accounts cannot be generated (${e?.message ?? String(e)}).
790
+ Check it with: hardkas toolchain status`
789
791
  );
790
792
  err.code = "WALLET_BACKEND_UNAVAILABLE";
791
793
  throw err;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hardkas/accounts",
3
- "version": "0.12.0-rc.24",
3
+ "version": "0.12.0-rc.25",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -23,11 +23,11 @@
23
23
  ],
24
24
  "dependencies": {
25
25
  "hash-wasm": "^4.12.0",
26
- "@hardkas/artifacts": "0.12.0-rc.24",
27
- "@hardkas/config": "0.12.0-rc.24",
28
- "@hardkas/core": "0.12.0-rc.24",
29
- "@hardkas/localnet": "0.12.0-rc.24",
30
- "@hardkas/tx-builder": "0.12.0-rc.24"
26
+ "@hardkas/config": "0.12.0-rc.25",
27
+ "@hardkas/artifacts": "0.12.0-rc.25",
28
+ "@hardkas/localnet": "0.12.0-rc.25",
29
+ "@hardkas/core": "0.12.0-rc.25",
30
+ "@hardkas/tx-builder": "0.12.0-rc.25"
31
31
  },
32
32
  "devDependencies": {
33
33
  "tsup": "^8.3.5",