Updated on 2026-08-14

This commit is contained in:
Tangem 2024-04-09 19:45:15 +01:00
parent 23b9a7bfd1
commit 6d325ab008

View file

@ -192,16 +192,7 @@ class DefaultWalletManagersFacade(
address = walletManager.wallet.address,
filterType = when (currency) {
is CryptoCurrency.Coin -> TransactionHistoryRequest.FilterType.Coin
is CryptoCurrency.Token -> {
val blockchainToken = Token(
name = currency.name,
symbol = currency.symbol,
contractAddress = currency.contractAddress,
decimals = currency.decimals,
id = currency.id.rawCurrencyId,
)
TransactionHistoryRequest.FilterType.Contract(blockchainToken)
}
is CryptoCurrency.Token -> TransactionHistoryRequest.FilterType.Contract(currency.contractAddress)
},
)
.let(txHistoryStateConverter::convert)
@ -230,16 +221,7 @@ class DefaultWalletManagersFacade(
pageSize = pageSize,
filterType = when (currency) {
is CryptoCurrency.Coin -> TransactionHistoryRequest.FilterType.Coin
is CryptoCurrency.Token -> {
val blockchainToken = Token(
name = currency.name,
symbol = currency.symbol,
contractAddress = currency.contractAddress,
decimals = currency.decimals,
id = currency.id.rawCurrencyId,
)
TransactionHistoryRequest.FilterType.Contract(blockchainToken)
}
is CryptoCurrency.Token -> TransactionHistoryRequest.FilterType.Contract(currency.contractAddress)
},
),
)