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

change get token url #2265

Merged
merged 1 commit into from
Jan 17, 2025
Merged

change get token url #2265

merged 1 commit into from
Jan 17, 2025

Conversation

aelmanaa
Copy link
Collaborator

@aelmanaa aelmanaa commented Jan 17, 2025

This pull request includes a new utility function to transform token names and updates the getTokenIconUrl function to use this transformation. The most important changes include the addition of the transformTokenName function and the modification of the getTokenIconUrl function to utilize this new transformation.

Utility function addition:

  • src/features/utils/index.ts: Added the transformTokenName function to convert token names to lowercase, remove dots, and replace plus signs with %2B.

Function update:

  • src/features/utils/index.ts: Updated the getTokenIconUrl function to use the transformTokenName function for transforming token names before generating the URL.

Copy link

vercel bot commented Jan 17, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
documentation ✅ Ready (Inspect) Visit Preview Jan 17, 2025 4:29pm

@aelmanaa aelmanaa merged commit d109a71 into main Jan 17, 2025
10 checks passed
@aelmanaa aelmanaa deleted the ccip/fix-token-logos branch January 17, 2025 17:03
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