Skip to content

Use registry asset id for metadata lookups in xcm transfer#3969

Open
hitchho wants to merge 1 commit into
galacticcouncil:masterfrom
hitchho:fix/xcm-registry-asset-id
Open

Use registry asset id for metadata lookups in xcm transfer#3969
hitchho wants to merge 1 commit into
galacticcouncil:masterfrom
hitchho:fix/xcm-registry-asset-id

Conversation

@hitchho

@hitchho hitchho commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

The xcm transfer module resolves registry metadata (logos, prices, symbol/name) through registryChain.getBalanceAssetId(). That returns the balance-query id, which diverges from the registry id for any asset that defines a balanceId — e.g. erc20-backed assets whose balances are read from a contract address. The registry lookup then receives a 0x… address instead of the asset id and misses, rendering a "?" logo and no price.

Switches the five call sites to registryChain.getAssetId(), which is the chain-internal registry id these lookups actually want.

Surfaced while testing the HOLLAR ↔ AssetHub routes (galacticcouncil/sdk#343): HOLLAR carries balanceId: 0x531a… (GHO contract) for balance reads, and every metadata lookup in the transfer form broke. With this change the HOLLAR icon and spot price resolve correctly from asset 222. No behavior change for existing assets — on the hydration registry chain, getAssetId and getBalanceAssetId are identical wherever balanceId is unset.

@netlify

netlify Bot commented Jul 17, 2026

Copy link
Copy Markdown

Deploy Preview for hydration-storybook ready!

Name Link
🔨 Latest commit 50e38aa
🔍 Latest deploy log https://app.netlify.com/projects/hydration-storybook/deploys/6a5a41c5c4e9310008bd8ebc
😎 Deploy Preview https://deploy-preview-3969--hydration-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Jul 17, 2026

Copy link
Copy Markdown

Deploy Preview for testnet-hydra-app ready!

Name Link
🔨 Latest commit 50e38aa
🔍 Latest deploy log https://app.netlify.com/projects/testnet-hydra-app/deploys/6a5a41c56a5ae200083a9f0f
😎 Deploy Preview https://deploy-preview-3969--testnet-hydra-app.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Jul 17, 2026

Copy link
Copy Markdown

Deploy Preview for edge-hydra-app ready!

Name Link
🔨 Latest commit 50e38aa
🔍 Latest deploy log https://app.netlify.com/projects/edge-hydra-app/deploys/6a5a41c55894c00008abc399
😎 Deploy Preview https://deploy-preview-3969--edge-hydra-app.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 0 (no change from production)
Accessibility: 66 (no change from production)
Best Practices: 92 (no change from production)
SEO: 91 (no change from production)
PWA: 80 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@jvonasek
jvonasek self-requested a review July 20, 2026 11:15
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