Skip to content

Commit

Permalink
refactor: add 0x check
Browse files Browse the repository at this point in the history
  • Loading branch information
begonaalvarezd committed Dec 27, 2024
1 parent 20deb74 commit 29660a1
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,9 @@ async function extractNativeTokensFromObject(
result.push({
name: tokenName,
balance,
coinType: `0x${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 29660a1

Please sign in to comment.