Skip to content
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

added ENS support #15

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

added ENS support #15

wants to merge 3 commits into from

Conversation

madhusgowda
Copy link

@madhusgowda madhusgowda commented Aug 29, 2024

Issue: #16

Added ENS support to show if the wallet has a ENS id else address will be displayed

Copy link
Member

@aashutoshrathi aashutoshrathi left a 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 spaces over 4 spaces or Tab which 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)}
Copy link
Member

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.

game/.env.sample Outdated Show resolved Hide resolved
@@ -5,42 +5,59 @@ import { LogOut } from "lucide-react";
import Image from "next/image";
import Link from "next/link";
import { Button } from "./ui/button";
import { useEffect, useState } from "react";
import { ethers } from "ethers";
Copy link
Member

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]>
@madhusgowda
Copy link
Author

Few changes other changes than comments:

  • Use the same formatting as existing project 2 spaces over 4 spaces or Tab which 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?

we can enable it to show to opponent as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants