@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.
- package/CHANGELOG.md +11 -4
- package/lib/data/trc10.json +1 -1
- package/lib/data/trc20.json +1 -1
- package/lib/legacy/legacy-utils.d.ts.map +1 -1
- package/lib/legacy/legacy-utils.js +5 -1
- package/lib/legacy/legacy-utils.js.map +1 -1
- package/lib-es/data/trc10.json +1 -1
- package/lib-es/data/trc20.json +1 -1
- package/lib-es/legacy/legacy-utils.d.ts.map +1 -1
- package/lib-es/legacy/legacy-utils.js +5 -1
- package/lib-es/legacy/legacy-utils.js.map +1 -1
- package/package.json +5 -5
- package/src/data/trc10.json +1 -1
- package/src/data/trc20.json +1 -1
- package/src/legacy/legacy-utils.ts +6 -1
|
@@ -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}/${
|
|
155
|
+
id: `tron/${type}/${tokenId}`,
|
|
151
156
|
contractAddress,
|
|
152
157
|
parentCurrency,
|
|
153
158
|
tokenType: type,
|