Skip to content

feat(wallets): handle Freighter not-installed with friendly error (#772) - #824

Open
ZacLou wants to merge 1 commit into
Stellar-split:mainfrom
ZacLou:feat/freighter-not-installed-772
Open

feat(wallets): handle Freighter not-installed with friendly error (#772)#824
ZacLou wants to merge 1 commit into
Stellar-split:mainfrom
ZacLou:feat/freighter-not-installed-772

Conversation

@ZacLou

@ZacLou ZacLou commented Sep 5, 2026

Copy link
Copy Markdown

Replaces cryptic TypeError with a clear, actionable error when the Freighter extension is missing.

Changes

  • New FreighterNotInstalledError with install URL (https://www.freighter.app) in message
  • connect(), sign(), and getAddress() all check window.freighter before any API call
  • Existing connection logic unchanged when extension is present
  • Tests: test/freighterAdapter.test.ts covers missing extension, error message, and normal connection flow

Closes #772

…ellar-split#772)

- Add FreighterNotInstalledError with install URL in message
- Check window.freighter presence before connect, sign, and getAddress
- Throw FreighterNotInstalledError instead of raw TypeError
- Existing logic unchanged when extension is present
- Add unit tests for missing extension, error message, and normal flow

Closes Stellar-split#772
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.

Handle Freighter wallet not-installed error with a user-friendly message

1 participant