@ledgerhq/cryptoassets 13.32.0-nightly.20251031023756 → 13.32.0-nightly.20251101023821

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -145,9 +145,14 @@ export function convertTRONTokens(type: "trc10" | "trc20") {
145
145
  | TRC20Token): TokenCurrency => {
146
146
  const parentCurrency = getCryptoCurrencyById("tron");
147
147
 
148
+ // For TRC20 tokens, use contract address as ID to match backend API format
149
+ // API expects lowercase addresses, so normalize here
150
+ // For TRC10 tokens, use numeric ID as before
151
+ const tokenId = type === "trc20" ? contractAddress.toLowerCase() : id;
152
+
148
153
  return {
149
154
  type: "TokenCurrency",
150
- id: `tron/${type}/${id}`,
155
+ id: `tron/${type}/${tokenId}`,
151
156
  contractAddress,
152
157
  parentCurrency,
153
158
  tokenType: type,