Skip to content

Commit

Permalink
added arcana
Browse files Browse the repository at this point in the history
  • Loading branch information
dinesh11515 committed Feb 7, 2023
1 parent c92efa4 commit 4db4695
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions frontend/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import Head from "next/head";
import Image from "next/image";
import { Inter } from "@next/font/google";
import styles from "@/styles/Home.module.css";
import { ConnectButton } from "@rainbow-me/rainbowkit";
import { Auth, useAuth } from "@arcana/auth-react";

export default function Home() {
Expand All @@ -14,31 +13,7 @@ export default function Home() {
try {
await auth.connect();
console.log(provider, "provider");
const chainId = 1;
console.log(chainId, "chainId");
await provider.request({
method: "wallet_switchEthereumChain",
params: [{ chainId: "0x5001" }],
});
} catch (e) {
if (e.code === 4902) {
await provider.request({
method: "wallet_addEthereumChain",
params: [
{
chainId: "0x5001",
chainName: "Mantle Testnet",
rpcUrls: ["https://rpc.testnet.mantle.xyz "],
nativeCurrency: {
name: "Mantle",
symbol: "BIT",
decimals: 18,
},
blockExplorerUrls: ["https://explorer.testnet.mantle.xyz/"],
},
],
});
}
console.log(e, "onLogin");
}
};
Expand Down

1 comment on commit 4db4695

@vercel
Copy link

@vercel vercel bot commented on 4db4695 Feb 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

linkpay – ./

linkpay.vercel.app
linkpay-dinesh11515.vercel.app
linkpay-git-main-dinesh11515.vercel.app

Please sign in to comment.