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

unable to fetch the phantom extension in reown appkit connect button #5492

Open
prabhatkashyap902 opened this issue Nov 10, 2024 · 3 comments
Assignees
Labels
type: bug Something isn't working

Comments

@prabhatkashyap902
Copy link

i am using reown appkit and from their docs, i have tried to get phantom wallet adapter button but when i click on it, it doesn't get detected even i have extension, and it has 2 phantom wallet button, it should have 1 the main above one. can anyone help me where i am getting wrong.

import { SolanaAdapter } from '@reown/appkit-adapter-solana/react'
import { solana, mainnet } from '@reown/appkit/networks'
import { PhantomWalletAdapter  } from '@solana/wallet-adapter-wallets'
import { EthersAdapter } from '@reown/appkit-adapter-ethers'

// 0. Create the Ethers adapter
const ethersAdapter = new EthersAdapter()
const phantomAdapter= new PhantomWalletAdapter()

// 0. Set up Solana Adapter
const solanaWeb3JsAdapter = new SolanaAdapter({
  wallets: [phantomAdapter]
})

// 1. Get projectId from https://cloud.reown.com
const projectId = '4f69a130bfe8'


createAppKit({
  adapters: [ethersAdapter, solanaWeb3JsAdapter],
  networks:[solana, mainnet],
  metadata,
  projectId,
  enableWalletConnect:false,
  debug:true,
  featuredWalletIds:['a797aa35c0fadbfc1a53e7f675162ed5226968b44a19ee3d24385c64d1d3c393','c57ca95b47569778a828d19178114f4db188b89b763c899ba0be274e97267d96','1ae92b26df02f0abca6304df07debccd18262fdf5fe82daa81593582dac9a369'],
  features: {
    socials:[],
    email:false,
    analytics: true // Optional - defaults to your Cloud configuration
  }
})
Screenshot 2024-11-10 at 7 13 56 PM Screenshot 2024-11-10 at 7 14 08 PM

as you can see these images, it is showing 2 phantom wallet, the above one is getting fetch from the extension and the 2nd one is getting fetched from featuredWalletIds, and if I click the 2nd one it says unable to detect, even though I have extension. please help

@prabhatkashyap902 prabhatkashyap902 added the type: bug Something isn't working label Nov 10, 2024
Copy link

linear bot commented Nov 10, 2024

@rtomas
Copy link
Member

rtomas commented Nov 12, 2024

HI @prabhatkashyap902

I hope you are doing well .. to get a correct functionality please delete this wallet from the feautureWalletId -> 'a797aa35c0fadbfc1a53e7f675162ed5226968b44a19ee3d24385c64d1d3c393'

This wallet will be appearing, in case of compatibility, in the "all wallets" section

@prabhatkashyap902
Copy link
Author

hello @rtomas if i remove that featureWalletId then how will I use it in my ios phone?
it simply doesn't show up in phone, so to show the wallet I need to give the featurewalletId,
can you help me with this,
why both the phantoms are different if they both are same product, and if we remove that featurewalletId then how will we able to get it connect on phone?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants