-
Notifications
You must be signed in to change notification settings - Fork 273
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
fix/wallet_switchStarknetChain RPC Message #1434
fix/wallet_switchStarknetChain RPC Message #1434
Conversation
… BLO-546-wallet-switch-starknet-chain-doesnt-work
dcded08
to
72e6cb2
Compare
… BLO-546-wallet-switch-starknet-chain-doesnt-work
TODO
|
… BLO-546-wallet-switch-starknet-chain-doesnt-work
data: { actionHash, selectedAccount }, | ||
} | ||
} catch (error) { | ||
console.error(error) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can be removed?
) | ||
} | ||
|
||
const accountsOnNetwork = await getAccounts( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dhruvkelawala was wondering, does it makes sense to reject if there are no accounts?
couldn't the user create it after switching to the custom network?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This RPC message will be sent by dApp to ArgentX and not the user. For example, if a dApp wants to use TESTNET2 instead of TESTNET, it will send this message through window object. And when switching the network, the dApp will require an account to connect with. So if the account is not present, dApp cannot connect to anything and even ArgentX won't be able to maintain a state where no account is selected on a network. If a user wants to create an account on network, they can still do it directly from extension. This PR doesn't change that.
…tps://github.com/argentlabs/argent-x into BLO-546-wallet-switch-starknet-chain-doesnt-work
@janek26 Waiting for your review on this |
No description provided.