-
Notifications
You must be signed in to change notification settings - Fork 115
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: MetaMask Virtual Wallet to support on demand connect #276
fix: MetaMask Virtual Wallet to support on demand connect #276
Conversation
@@ -31,7 +31,8 @@ | |||
}, | |||
"dependencies": { | |||
"@module-federation/runtime": "^0.1.2", | |||
"@starknet-io/types-js": "^0.7.7" | |||
"@starknet-io/types-js": "^0.7.7", |
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.
shouldn't it be under devDependencies
?
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.
Hi , u mean the "@starknet-io/types-js
? didnt aware it is in dependencies
it looks like this is an existing issue,
i would suggest create another PR to fix it
will fix the pnpm lock |
pnpm lock file should now be good |
Looks like the lockfile needs updating again. |
This pull request addresses the following issues:
When the
get-startnet
UI is not used andWalletAccount
is used with theMetaMask Virtual Wallet
instarknet.js
, an error is thrown due to theMetaMask Virtual Wallet
not being loaded whileWalletAccount
sends an API request towallet_requestAccounts
during construction.This PR loads the
MetaMask Virtual Wallet
on-the-fly whenever the API request is being handled.This PR also adds support for two RPC APIs (
wallet_supportedWalletApi
andwallet_supportedSpecs
) even if the virtual wallet is not connected.