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

wallet_switchStarknetChain aborts on new networks #2133

Open
rsodre opened this issue Apr 3, 2024 · 0 comments
Open

wallet_switchStarknetChain aborts on new networks #2133

rsodre opened this issue Apr 3, 2024 · 0 comments

Comments

@rsodre
Copy link

rsodre commented Apr 3, 2024

Follow up to #2132

After adding a new network to ArgentX using wallet_addStarknetChain.
The network is new to the user, account is not deployed yet!
If I try to switch to that network using wallet_switchStarknetChain, instead of asking me to deploy the account, the request Promise throws Error: User abort.

const params: SwitchStarknetChainParameter = {
  "chainId": "LOCAL_KATANA"
}
window?.starknet?.request({ type: 'wallet_switchStarknetChain', params })

If I switch the network manually, deploy the account, go back to another network and try again, it will succeed.

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

1 participant