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

fix: MetaMask Virtual Wallet to support on demand connect #276

Merged
merged 5 commits into from
Nov 15, 2024

Conversation

stanleyyconsensys
Copy link

@stanleyyconsensys stanleyyconsensys commented Nov 1, 2024

This pull request addresses the following issues:

  • When the get-startnet UI is not used and WalletAccount is used with the MetaMask Virtual Wallet in starknet.js, an error is thrown due to the MetaMask Virtual Wallet not being loaded while WalletAccount sends an API request to wallet_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 and wallet_supportedSpecs) even if the virtual wallet is not connected.

@@ -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",
Copy link
Collaborator

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?

Copy link
Author

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

@stanleyyconsensys stanleyyconsensys marked this pull request as ready for review November 5, 2024 08:06
@stanleyyconsensys
Copy link
Author

will fix the pnpm lock

@khanti42
Copy link
Contributor

khanti42 commented Nov 5, 2024

pnpm lock file should now be good

cc: @stanleyyconsensys @avimak

@fracek
Copy link
Collaborator

fracek commented Nov 6, 2024

Looks like the lockfile needs updating again.

@fracek fracek requested a review from avimak November 6, 2024 15:44
@fracek fracek merged commit 4669396 into starknet-io:develop Nov 15, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

4 participants