reown-com / appkit

The full stack toolkit to build onchain app UX
https://reown.com/appkit
Apache License 2.0
4.94k stars 1.41k forks source link

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

Open schellenbergk opened 4 weeks ago

schellenbergk commented 4 weeks ago

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",