Updated on 2026-08-14
This commit is contained in:
parent
1854fded77
commit
7208def757
3 changed files with 11 additions and 3 deletions
|
|
@ -24,7 +24,12 @@ internal object BlockchainInfoConverter : Converter<WalletManager, BlockchainInf
|
|||
addresses = value.wallet.mapAddresses(Address::value),
|
||||
explorerLinks = value.wallet.mapAddresses { value.wallet.getExploreUrl(it.value) },
|
||||
tokens = value.cardTokens.map { token ->
|
||||
BlockchainInfo.TokenInfo(id = token.id, name = token.name, contractAddress = token.contractAddress)
|
||||
BlockchainInfo.TokenInfo(
|
||||
id = token.id,
|
||||
name = token.name,
|
||||
contractAddress = token.contractAddress,
|
||||
decimals = token.decimals.toString(),
|
||||
)
|
||||
},
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,12 +34,14 @@ internal class FeedbackDataBuilder {
|
|||
builder.appendKeyValue("Outputs count", outputsCount)
|
||||
|
||||
if (tokens.isNotEmpty()) {
|
||||
builder.append("Tokens:")
|
||||
builder.breakLine()
|
||||
tokens.forEach { token ->
|
||||
builder.appendKeyValue("ID", token.id ?: "[custom token]")
|
||||
builder.appendKeyValue("Token ID", token.id ?: "[custom token]")
|
||||
builder.appendKeyValue("Name", token.name)
|
||||
builder.appendKeyValue("Contract address", token.contractAddress)
|
||||
builder.appendKeyValue("Decimals", token.decimals)
|
||||
|
||||
builder.breakLine()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -24,5 +24,6 @@ data class BlockchainInfo(
|
|||
val id: String?,
|
||||
val name: String,
|
||||
val contractAddress: String,
|
||||
val decimals: String,
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue