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

[bug] PhantomWalletAdapter is not assignable to type BaseWalletAdapter #3147

Open
schellenbergk opened this issue Oct 24, 2024 · 0 comments
Open
Labels
bug Something isn't working needs review

Comments

@schellenbergk
Copy link

Link to minimal reproducible example

https://github.com/schellenbergk/appkit-example

Summary

// App.tsx
import {createAppKit} from '@reown/appkit/react';
import {SolanaAdapter} from '@reown/appkit-adapter-solana/react';
import {solana, solanaTestnet, solanaDevnet} from '@reown/appkit/networks';
import {
  PhantomWalletAdapter,
} from '@solana/wallet-adapter-wallets';

// 0. Set up Solana Adapter
const solanaWeb3JsAdapter = new SolanaAdapter({wallets:[
    new PhantomWalletAdapter(), // Type 'PhantomWalletAdapter' is not assignable to type 'BaseWalletAdapter<string>'.
]});

List of related npm package versions

node: v20.17.0
"@reown/appkit": "^1.1.7",
"@reown/appkit-adapter-solana": "^1.1.7",
"@solana/wallet-adapter-wallets": "^0.19.32",
@schellenbergk schellenbergk added bug Something isn't working needs review labels Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs review
Projects
None yet
Development

No branches or pull requests

2 participants
@schellenbergk and others