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

Terra Station Mobile Connector Bug #17

Open
Mario857 opened this issue Sep 9, 2023 · 2 comments
Open

Terra Station Mobile Connector Bug #17

Mario857 opened this issue Sep 9, 2023 · 2 comments

Comments

@Mario857
Copy link

Mario857 commented Sep 9, 2023

Hey there. Getting the wrong/missing values returned from useConnectedWallet and useWallet when connecting over Terra Station Mobile.

Mobile:


useConnectedWallet()
{
    "addresses": {
        "phoenix-1": "..."
    }
}



Browser Extension:

useConnectedWallet()
{
    "address": "....", // This one field is not in interface.
    "addresses": {
        "akashnet-2": "...",
        "archway-1": "...",
        "axelar-dojo-1": "...",
        "carbon-1": "...",
        "cheqd-mainnet-1": "..",
        "chihuahua-1": "..",
        "comdex-1": "..",
        "cosmoshub-4": "..",
        "crescent-1": "..",
        "juno-1": "..",
        "kaiyo-1": "..",
        "mainnet-3": "..",
        "mars-1": "..",
        "migaloo-1": "..",
        "neutron-1": "..",
        "osmosis-1": "...",
        "pacific-1": "...",
        "phoenix-1": "...",
        "stafihub-1": "...",
        "stride-1": "..."
    },
    "ledger": false, // does not exist on mobile
    "name": "....", // does not exist on mobile
    "network": "mainnet" // required
}


@Mario857
Copy link
Author

Mario857 commented Sep 9, 2023

useConnectedWallet should at minimum return one more field (network to be 'testnet' | 'mainnet' | 'classic') on mobile

@Kayanski
Copy link

I put a +1 on this issue. The connector defined in this file : https://github.com/terra-money/wallet-kit/blob/main/src/%40terra-money/terra-station-mobile/index.ts#L209 should return the fields correctly to help us identify which wallet is connected to the app !

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

No branches or pull requests

2 participants