rarity-adventure / rarity-frontend

Front end for the rarity adventure game
https://rarity.game
39 stars 32 forks source link

Switch to or add Fantom network to Metamask #9

Closed apedeveloper closed 3 years ago

apedeveloper commented 3 years ago

Code to switch to or add Fantom network. It only works on Metamask, because it's the only wallet that implemented this EIP. Hook will first try to switch to network if exists, otherwise it will try to add the network per specs on: https://docs.fantom.foundation/tutorials/set-up-metamask. It handles user rejection and any other error that could occur when switching or adding the network.

vercel[bot] commented 3 years ago

@apedeveloper is attempting to deploy a commit to the polischain Team on Vercel.

A member of the Team first needs to authorize it.

eabz commented 3 years ago

@apedeveloper can you do it in the new-ui branch?

eabz commented 3 years ago

@apedeveloper Sorry to ask again, but we moved new-ui to develop can you add it again?

eabz commented 3 years ago

Sorry to ask again. Can you pls create it again just to make sure we are using the same codebase?