Skip to content

Commit

Permalink
update rpc urls for xdai
Browse files Browse the repository at this point in the history
  • Loading branch information
azf20 committed Jan 22, 2022
1 parent 24c7690 commit 4d57961
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/react-app/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ if (process.env.REACT_APP_NETWORK_NAME) {
console.log("🎉 XDAINETWORK + 🚀 Mainnet Ethereum");
localProvider = mainnetProvider;
kovanProvider = new ethers.providers.StaticJsonRpcProvider(
"https://xdai.poanetwork.dev" //"https://rpc.xdaichain.com/"//"https://dai.poa.network"
"https://rpc.gnosischain.com" //"https://xdai.poanetwork.dev" //"https://rpc.xdaichain.com/"//"https://dai.poa.network"
);
} else if (process.env.REACT_APP_NETWORK_NAME === "sokol") {
console.log("THIS.IS.SOKOL");
Expand Down
8 changes: 7 additions & 1 deletion packages/react-app/src/helpers/addToMetamask.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@ export async function addXDAItoMetamask(props) {
{
chainId: "0x64",
chainName: "xDAI Chain",
rpcUrls: ["https://rpc.xdaichain.com"],
rpcUrls: [
"https://rpc.gnosischain.com",
"https://rpc.xdaichain.com",
"https://xdai.poanetwork.dev",
"https://dai.poa.network",
"https://xdai-archive.blockscout.com"
],
iconUrls: [
"https://gblobscdn.gitbook.com/spaces%2F-Lpi9AHj62wscNlQjI-l%2Favatar.png"
],
Expand Down
8 changes: 4 additions & 4 deletions packages/react-app/src/helpers/transactionHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ export async function transactionHandler(c) {
content: (
<>
<p>
Nifty Ink is built on xDai: please change your MetaMask Network to
point to the{" "}
Nifty Ink is built on Gnosis chain: please change your MetaMask
Network to point to the{" "}
<a href="https://www.xdaichain.com/" target="_blank">
xDai Chain
</a>
</p>
<p>
You will need to create a custom RPC with the following URL:{" "}
<b>https://dai.poa.network</b>
<b>https://rpc.gnosischain.com</b>
</p>
</>
)
Expand All @@ -50,7 +50,7 @@ export async function transactionHandler(c) {
content: (
<Space direction="vertical">
<Text>
<a target="_blank" href={"https://xdai.io"}>
<a target="_blank" href={"https://bridge.xdaichain.com/"}>
Take it to the bridge
</a>{" "}
(to transfer DAI from mainnet).
Expand Down

0 comments on commit 4d57961

Please sign in to comment.