Updated on 2026-08-14

This commit is contained in:
Tangem 2023-07-12 13:11:05 +03:00
parent 6d1a15724f
commit 26f5a1da82
3 changed files with 9 additions and 11 deletions

View file

@ -77,6 +77,7 @@ class WalletConnectSdkHelper {
val transactionData = TransactionData(
amount = Amount(value, wallet.blockchain),
// TODO refactoring
fee = Fee.Common(Amount(fee, wallet.blockchain)),
sourceAddress = transaction.from,
destinationAddress = transaction.to!!,

View file

@ -8,17 +8,14 @@ import com.tangem.wallet.R
object MultipleAddressUiHelper {
fun typeToId(type: AddressType, blockchain: Blockchain): Int {
return when (blockchain) {
in blockchainsSupportingSplit -> {
if (type == AddressType.Legacy) {
R.id.chip_legacy
} else {
R.id.chip_default
}
}
else -> {
View.NO_ID
return if (blockchain in blockchainsSupportingSplit) {
if (type == AddressType.Legacy) {
R.id.chip_legacy
} else {
R.id.chip_default
}
} else {
View.NO_ID
}
}