Skip to content

Commit

Permalink
Merge pull request #1539 from nervosnetwork/develop
Browse files Browse the repository at this point in the history
Merge develop into testnet
  • Loading branch information
Keith-CY authored Apr 2, 2024
2 parents 52a32dd + 205e4cc commit 52f6044
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export const TransactionRGBPPDigestTransferAsset = ({ transfer }: { transfer: Li
`${t('udt.unknown_token')} #${transfer.udtInfo.typeHash.substring(transfer.udtInfo.typeHash.length - 4)}`
break
case 'xudt': {
name = transfer.udtInfo?.displayName || 'xUDT'
break
}
case 'omiga_inscription': {
Expand Down
8 changes: 4 additions & 4 deletions src/utils/transfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,19 +130,19 @@ export const getTransfer = (transfer: LiteTransfer.Transfer): TransferRecord =>
}
}
const decimal = +transfer.udtInfo.decimal
let item = decimal ? parseUDTAmount(transfer.udtInfo.amount, decimal) : transfer.udtInfo.amount
let amount = decimal ? parseUDTAmount(transfer.udtInfo.amount, decimal) : transfer.udtInfo.amount
const diffStatus = getDiffStatus(+transfer.udtInfo.amount)
if (diffStatus === 'positive') {
item = `+${item}`
amount = `+${amount}`
}
return {
label: transfer.udtInfo.symbol || 'Unknown',
diffStatus: getDiffStatus(+transfer.capacity),
category: transfer.cellType,
capacity: transfer.capacity,
asset: {
amount: transfer.udtInfo.amount,
item,
amount,
item: transfer.udtInfo.symbol || 'Unknown',
diffStatus,
},
}
Expand Down

0 comments on commit 52f6044

Please sign in to comment.