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

feat(frontend): use ledger-icrc mapTokenMetadata #4060

Merged
merged 2 commits into from
Dec 23, 2024

Conversation

peterpeterparker
Copy link
Member

@peterpeterparker peterpeterparker commented Dec 23, 2024

Motivation

The @dfinity/ledger-icrc now implements a function mapTokenMetadata which is equals to our mapOptionalToken function (it was copied from there, see PR #798), therefore we can use this utility.

Notes

Maybe I should have marked the type of the function as generic in ic-js since we basically duplicates the same type with zod but TypeScript is able to understand both types are equals it seems.

Changes

  • Replace function

@peterpeterparker peterpeterparker merged commit fc52cb0 into main Dec 23, 2024
21 checks passed
@peterpeterparker peterpeterparker deleted the feat/mapTokenMetadata branch December 23, 2024 12:54
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