MetaMask / MetaMask/vite-react-ts-eip-6963
Incorporate Disconnect Button for MetaMask detected wallet providers
@httpJunkie is already working on this.
Since Jul 24, 2024.
- Dominant language
- TypeScript
- Stars
- 30
- Forks
- 28
- PR merge metrics
- No merged PRs in 30d
Description
There has been some misconceptions that `wallet_revokePermissions` which is related to [eip-2255](https://eips.ethereum.org/EIPS/eip-2255) that since EIP-2255 may not support EIP-6963 (I'm not sure where this understanding comes from) that we may not be able to use `wallet_revokePermissions`. For this reason I want to refactor the code for this demo and updating the basic UI and UX to show that you can use `wallet_revokePermissions` as well add a properly formatted button to do so with proper text, titles and upgraded logic and UI/UX.
This issue is to add the `wallet_revokePermissions` call, update the UI/UX and while doing so clean up some of the code and refactor the demo so that it's easy to understand considering the new complexities but also so that it give a good example of how to get started rolling your own EIP-6963 component to discover, display, connect and disconnect from MetaMask.
The solution should look something like the following demo and take all of the above into consideration:
https://github.com/user-attachments/assets/47912469-3a10-4825-ae92-ab2574d5b0c3
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.