Open edmundedgar opened 3 years ago
Done in https://github.com/realitio/realitio-dapp/commit/c4585cc5ac3da0d64929e28c829dcc0ce75e0488
Currently editing the chains.json file from chains.network to add the XDAI logo and block explorer urls, and also tell it not to prompt to switch to mainnet (which metamask refuses) or rinkeby (which only has infura rpc urls, and we don't want everyone installing our infura key in their browsers).
Hopefully we can get a long-term solution to the first issues depending on: https://github.com/ethereum-lists/chains/issues/202 https://github.com/ethereum-lists/chains/issues/59
If the user doesn't have the network specified we should be able to prompt for it:
https://eips.ethereum.org/EIPS/eip-3085 https://docs.metamask.io/guide/rpc-api.html#other-rpc-methods