Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove wallet adapter dependency #116

Merged
merged 2 commits into from
May 26, 2022
Merged

Conversation

lorisleiva
Copy link
Contributor

@lorisleiva lorisleiva commented May 26, 2022

Currently: We are requiring the @solana/wallet-adapter-base package just to import its WalletAdapter type. The issue is we require the entire type when we only need a subset of it. This can cause type errors like #113.

After this PR: We expose our own WalletAdapter type definition cherry-picking what we need from that library without depending on it.

Fix #113

@lorisleiva lorisleiva self-assigned this May 26, 2022
@lorisleiva lorisleiva requested a review from thlorenz May 26, 2022 12:38
Copy link
Contributor

@thlorenz thlorenz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lorisleiva lorisleiva merged commit 2bb531e into main May 26, 2022
thlorenz added a commit that referenced this pull request May 28, 2022
* main:
  Refactor Storage Module (#117)
  Remove wallet adapter dependency (#116)
@lorisleiva lorisleiva deleted the loris/fix-wallet-adapter-type branch May 30, 2022 08:30
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.

walletAdapterIdenity is showing type error when used with useWallet.
2 participants