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

Get ENS avatar #515

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open

Get ENS avatar #515

wants to merge 2 commits into from

Conversation

wackerow
Copy link
Member

@wackerow wackerow commented Mar 20, 2022

  • Extracts logic for getting account avatar to accounts.ts from user.ts, starting with get3BoxAvatarUrl
  • Adds getEnsAvatarUrl function to also check if logged in user has an ENS, and if that ENS has an avatar declared. If so, fetches and loads with preference over 3Box

(Btw, ENS syntax for this is eip155:1/[NFT standard]:[contract address for NFT collection]/[token ID or the number that it is in the collection])

Note, tried adding SelfID avatar support as well, but I had some issues which I believe were related to using node v12. Worked locally, but with a bunch of console warnings related to the packages.

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.

1 participant