-
Notifications
You must be signed in to change notification settings - Fork 155
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
Near Snap - MetaMask Snap to support NEAR network #460
Near Snap - MetaMask Snap to support NEAR network #460
Conversation
# Conflicts: # package.json # yarn.lock
Hey, @BeroBurny thank you for submitting this PR. Can you make sure that Could you please explain how to use this wallet: how do we create an account or import an existing one (i.e kujtimprenku.testnet)? |
Hi @kujtimprenkuSQA, |
Hey, @BeroBurny. I will share my experience with For a user it is very unclear what is happening under the hood when using this wallet, I downloaded and installed the extension then created a new "Ethereum" account it was not clear how this account will be used just when I tried to sign in via Wallet Selector then I noticed a message 429380d6c79d10d1b7cd5b457153d8f433e9dec37e29bf52467cc1a30bdd74c0 does not exist this account was somehow created based on the "Ethereum" account created through the extension but because it had 0 NEAR on it the sign in did not work what's strange is that I never saw that account id anywhere in the Extension indicating that this is the account id based on the Ethereum account. Questions/ comments:
Did anything change in the source code of Today I tried to test how this would work if I exported the account first and then removed the extension after that I re-installed it and imported the account but this wallet does not work anymore I see this error when I click Connect on the wallet's UI: |
Hey @BeroBurny @irubido I just wanted to check the status regarding the work on this. Do you guys have any updates or any questions? Hvala 😉 |
Hi, @AmmarHumackicSQA - I am the ChainSafe project manager for our work on the NEAR snap. this Pull Request was made as part of a contract that was signed by ChainSafe and the NEAR Foundation. I agree with many of the concerns raised by @kujtimprenkuSQA, but in many/most cases they speak to limitations of the snap system itself. Snaps are still in beta so it's possible that as the snap ecosystem matures the concerns that have been brought up will be addressed, but at this time it's not within the scope of work (or in many cases even the scope of possibility) for ChainSafe developers to address the issues that have been brought up. Please let me know if you'd like to set up some time to chat about this and we'll figure out a way to make that work. |
sync fork
# Conflicts: # README.md # examples/react/contexts/WalletSelectorContext.tsx # workspace.json
# Conflicts: # README.md # examples/react/contexts/WalletSelectorContext.tsx
Hey, @danforbes I have noticed two potential issues and I am unable to use this Wallet (snap)
I just installed MetaMask Flask DEVELOPMENT and created a new Account, and tried to sign in with Wallet Selector, is there any extra step/work I need to do to successfully signIn in to the guest-book example with Near Snap? |
@kujtimprenkuSQA - this is a known bug that occurs when both MetaMask and MetaMask Flask are installed as extensions in the same browser. Based on the first screenshot you shared, that seems to be the cause of the problem you're experiencing. |
@danforbes Should we expect an update that'd fix these or is this out of the domain of Snaps? |
@gutsyphilip the answer to that question is out of my domain as I am not associated with the MetaMask team; I am associated with the team at ChainSafe that implemented the Near snap, with the support of the Near Foundation. |
…ido/near-snap-wallet
…t-selector into irubido/near-snap-wallet
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.
Hey, @irubido thank you for updating the PR.
Left a few comments and questions, also looks like there are some linting issues/errors to check them try running:
yarn nx run near-snap:lint
Hey @irubido, any news on the status regarding the work on addressing the comments left by @kujtimprenkuSQA ? |
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.
Currently, Near Snap is blocking the execution of the Wallet Selector when setupNearSnap()
is added to the array of modules
in the setupWalletSelector()
for this reason, we can not manually test the functionality.
To reproduce: remove node_modules
and dist
install, build, and run everything again.
TODO:
- Address the comments.
- Merge with the latest changes of the
dev
branch. - Make sure build, tests, and linting are working.
- Request a review again.
@kujtimprenkuSQA - are there any pending tasks related to this PR for the ChainSafe team? |
Hey, @danforbes the PR looks good to me, there are no pending tasks for the ChainSafe/ Near Snap team. |
Updated breaking changes for metamask flask v1.25 released today |
@irubido after this last update we're seeing an error when we try to signIn: Version |
Can you tell me a version of snap installed on Flask? |
Is there a "right" way to upgrade these snaps? The way I did it was by removing the previous version and trying to connect with the new one, now it's working. |
Description
NEAR Snap extends the capability of MetaMask to interact with the NEAR network.
Checklist: