engineer-dao / platform

The EngineerDAO dApp for interacting with job contracts
engineer-dao-platform.vercel.app
6 stars 4 forks source link

Feat/add chain #131

Closed karmabadger closed 2 years ago

karmabadger commented 2 years ago

This adds a few functions to frontend/src/utils/metamask.ts so to add and switch chains using pop ups.

vercel[bot] commented 2 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployments, click below or on the icon next to each commit.

platform – ./frontend

🔍 Inspect: https://vercel.com/engineerdao/platform/6BxfMjuHWFenjNwkABecCLEX1Cvp
✅ Preview: https://platform-git-feat-add-chain-engineerdao.vercel.app

[Deployment for 494a04c failed]

backend – ./backend

🔍 Inspect: https://vercel.com/engineerdao/backend/Yh6mDWnKmqyU4znyuJkFe8Pw7qLN
✅ Preview: https://backend-git-feat-add-chain-engineerdao.vercel.app

karmabadger commented 2 years ago

a few changes/additions to .env would be required. Please check .env.example, Though, the icon urls isn't required.

karmabadger commented 2 years ago

image image image

This either adds the network to the wallet if it's not added or switches to it if it's already added. See pictures for more detail.

karmabadger commented 2 years ago

The button has not been styled since I have no idea how the styling works with tailwind CSS and how to contribute on that end. If someone could help on that front, it would be greatly appreciated. Thank you

reisr3 commented 2 years ago

Hey @catmaxi ! Any questions or pushback here? I'd love to see this get merged in - you did great work!

deweller commented 2 years ago

Closing this for now since this branch is too out-of-date.