-
Couldn't load subscription status.
- Fork 3
added ENS support #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few changes other changes than comments:
- Use the same formatting as existing project
2 spacesover4 spaces or Tabwhich ever you use, it'll reduce diff.
Question:
- Will this help anyone? As still the ENS is only visible to the user themselves and not their opponent?
| {!!walletAddress && ( | ||
| <div className="flex gap-4 items-center"> | ||
| <p className="font-mono"> | ||
| <b>AA Wallet:</b> {ensName || formatHash(walletAddress)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few changes here, the walletAddress will be the user's non-custodial wallet address.
So you might have to show it like here
Since this wallet is Injected and the one with connectorType as embedded is AA Wallet.
| import Link from "next/link"; | ||
| import { Button } from "./ui/button"; | ||
| import { useEffect, useState } from "react"; | ||
| import { ethers } from "ethers"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think ethers is dep in game. You might have to use viem or install this.
Co-authored-by: Aashutosh Rathi <[email protected]>
we can enable it to show to opponent as well |
Issue: #16
Added ENS support to show if the wallet has a ENS id else address will be displayed