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

setNetwork function similar to connect #239

Open
SaulDope opened this issue Feb 13, 2024 · 2 comments
Open

setNetwork function similar to connect #239

SaulDope opened this issue Feb 13, 2024 · 2 comments

Comments

@SaulDope
Copy link

We have our own custom wallet connector modal using the adapter. We have an issue on our public testnet where when a user has their wallet set to mainnet, we have no way of helping them switch their wallet to testnet. The user must manually set their wallet to testnet, then try to connect to our dapp again.

It would be great if we could show users a prompt with a button to swap networks. This would also be useful for projects to do the opposite (ie a wallet is set to testnet but the user is trying to access the mainnet page).

There is a helper network() that shows the network. I think it would be helpful if there was a function like setNetwork(chainId || NetworkName).

@0xmaayan
Copy link
Collaborator

Agreed! Take a look at the new wallet standard we are about to follow from now on, especially the aptos:changeNetwork feature

@SaulDope
Copy link
Author

That looks like the perfect fit, thanks for the response. Looking forward to this standard. Happy to help work on the Aptos Wallet Adapter when the AIP is finalized!

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