hirosystems / connect

A library for building excellent user experiences with Stacks.
https://connect.stacks.js.org
MIT License
77 stars 40 forks source link

Xverse Bitcoin Wallet address error #327

Closed Mazowiecki closed 1 year ago

Mazowiecki commented 1 year ago

Hello, I'm using this package to gather Bitcoin addresses. Hiro Wallet works fine but it's not with Xverse Wallet.

This is the code that shows the modal where the user can pick a wallet and it returns Its address. Is there maybe an option to not show Xverse wallet on this modal?

export const getWalletAddress = (onSuccess: (key: string) => void): void => { const userSession = new UserSession(); showConnect({ appDetails, onFinish: () => { onSuccess(userSession.loadUserData()?.profile?.btcAddress?.p2tr?.mainnet || ''); }, userSession }); };

Hiro: Zrzut ekranu 2023-07-18 o 17 53 46

Xverse:

Zrzut ekranu 2023-07-18 o 17 53 59
janniks commented 1 year ago

Hi, 👋🏻 Hiro Wallet was trying this out and it wasn’t really an official API yet. cc @yknl Maybe Xverse can easily add the same field Also, we’re collaborating with different wallet and working on new standards for requesting accounts, since the current solutions aren’t very clean. Hope to have more updates soon

smcclellan commented 1 year ago

@Mazowiecki I'll close this for now based on @janniks's answer. Thank you for filing!