Repository navigation
fix: show the native asset contract as XLM - #557
Open
Sensei-Victor wants to merge 1 commit into
Open
Sensei-Victor wants to merge 1 commit into
Sensei-Victor wants to merge 1 commit into
Conversation
- Map the native asset contract ID for the configured network to XLM dynamically via nativeAssetContractId. - Remove hardcoded USDC metadata fallback mapping to the testnet native asset contract ID. - Extract token metadata hooks into hooks/use-token-metadata to decouple React hook lifecycle from simulation helpers and resolve module mocking in tests. - Update fixtures and test suites across format, stream search, and stream totals to reference the native asset and explicit mock token IDs. - Clean up unused imports, effect dependencies, and lint warnings to ensure all repository checks pass cleanly. Closes TricklePay#503
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Previously, KNOWN_TOKEN_METADATA mapped the native XLM contract address (CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC on testnet) to USDC. Consequently, any native XLM stream rendered as USDC, and the native token selector was mismatched.
This change:
Linked issue
Closes #503
What was tested
Checklist