Skip to content

v0.0.7 [BETA] Hotfix Lace wallet connection (issue #3)#4

Merged
Crypto2099 merged 1 commit into
mainfrom
hotfix/lace-wallet
May 20, 2026
Merged

v0.0.7 [BETA] Hotfix Lace wallet connection (issue #3)#4
Crypto2099 merged 1 commit into
mainfrom
hotfix/lace-wallet

Conversation

@Crypto2099

Copy link
Copy Markdown
Owner

stop mutating the CIP-30 API object and surface connection errors that actually mean something.

Lace deep-freezes the window.cardano API object it exposes to dApps as a security measure, which means setting wallet.loading = true from inside connect() throws a TypeError before we ever get to wallet.enable(). Users just saw the generic "Make sure you have a dApp account selected!" toast and had no way to actually connect.

Updates include:

  • Move per-button loading state off the CIP-30 wallet handle and into a walletLoading map on App.vue's data, keyed by wallet.name. The mixin's connect() no longer writes anything to the wallet object - reads only.
  • Replace the single hardcoded connect error string with a describeConnectError classifier that pattern-matches the frozen-object TypeError Lace throws, the CIP-30 APIError codes (-3 user refused, -1 invalid request), and otherwise surfaces the underlying error message so we can actually see what went wrong next time.
  • Bump version to 0.0.7 [BETA] in package.json and src/version.json.

…g the CIP-30 API object and surface connection errors that actually mean something.

Lace deep-freezes the `window.cardano` API object it exposes to dApps as a security measure, which means setting `wallet.loading = true` from inside `connect()` throws a TypeError before we ever get to `wallet.enable()`. Users just saw the generic "Make sure you have a dApp account selected!" toast and had no way to actually connect.

Updates include:

- Move per-button loading state off the CIP-30 wallet handle and into a `walletLoading` map on App.vue's data, keyed by `wallet.name`. The mixin's `connect()` no longer writes anything to the wallet object - reads only.
- Replace the single hardcoded connect error string with a `describeConnectError` classifier that pattern-matches the frozen-object TypeError Lace throws, the CIP-30 APIError codes (-3 user refused, -1 invalid request), and otherwise surfaces the underlying error message so we can actually see what went wrong next time.
- Bump version to 0.0.7 [BETA] in `package.json` and `src/version.json`.
@Crypto2099 Crypto2099 merged commit 886b967 into main May 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant