xmtp / example-chat-react

This repo has been archived. Replacement apps include the XMTP Quickstart React and XMTP Inbox chat apps. For more details and links, see the README in this repo.
MIT License
74 stars 52 forks source link

autosign metamask messages #85

Closed 0xlws closed 1 year ago

0xlws commented 2 years ago

During development it gets very time consuming to wait for the metamask window and sign the identity messages after page refresh. I replaced Signer with Wallet using the private key of a hardhat development wallet. Improves dev experience, not sure if re-asking for signing of identity is necessary in production. Any thoughts?


~For the default private key I think you also need to add the wallet to metamask~

hardhat wallet address:

0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266

0xlws commented 2 years ago

Hey i went through the issues to see what is fixed in this PR and i'm listing them below. Some where already taken care of mostly i guess and i tried to improve on it.

56 #65 #67 #79

You can test it out on the app hosted at: xmtp-example.vercel.app/

bhavya2611 commented 1 year ago

I think this has been fixed after the latest changes, if you still see the need for the same we can reopen this PR. Closing it for now