Skip to content

Commit

Permalink
fix(wallet-dashboard): coin-metadata query address missing 0x for nat…
Browse files Browse the repository at this point in the history
…ive tokens (#4634)

* fix(wallet-dashboard): coin-metadata query address missing 0x for native tokens

* refactor: add 0x check
  • Loading branch information
begonaalvarezd authored Jan 16, 2025
1 parent 795d831 commit 8650d05
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,9 @@ async function extractNativeTokensFromObject(
result.push({
name: tokenName,
balance,
coinType: nativeTokenFields.name,
coinType: nativeTokenFields.name.startsWith('0x')
? nativeTokenFields.name
: `0x${nativeTokenFields.name}`,
unlockConditionTimestamp: expirationKey,
commonObjectType: CommonMigrationObjectType.NativeToken,
output: object,
Expand Down

0 comments on commit 8650d05

Please sign in to comment.