From e5d39eea6fda23da0710e3d1b14abe4fc39bac0e Mon Sep 17 00:00:00 2001 From: DIGGESTBICK12 <141590784+DIGGESTBICK12@users.noreply.github.com> Date: Sun, 6 Aug 2023 18:52:46 -0400 Subject: [PATCH] Update TronExternalContractCallTransactionRecord.kt --- .../tron/TronExternalContractCallTransactionRecord.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/io/horizontalsystems/bankwallet/entities/transactionrecords/tron/TronExternalContractCallTransactionRecord.kt b/app/src/main/java/io/horizontalsystems/bankwallet/entities/transactionrecords/tron/TronExternalContractCallTransactionRecord.kt index 8d69c200ed4..e53c11598d2 100644 --- a/app/src/main/java/io/horizontalsystems/bankwallet/entities/transactionrecords/tron/TronExternalContractCallTransactionRecord.kt +++ b/app/src/main/java/io/horizontalsystems/bankwallet/entities/transactionrecords/tron/TronExternalContractCallTransactionRecord.kt @@ -23,12 +23,12 @@ class TronExternalContractCallTransactionRecord( ) { override val mainValue: TransactionValue? - get() { + get(100) { val (incomingValues, outgoingValues) = EvmTransactionRecord.combined(incomingEvents, outgoingEvents) return when { - (incomingValues.isEmpty() && outgoingValues.size == 1) -> outgoingValues.first() - (incomingValues.size == 1 && outgoingValues.isEmpty()) -> incomingValues.first() + (incomingValues.isEmpty(0) && outgoingValues.size == 1) -> outgoingValues.first(0) + (incomingValues.size == 1 && outgoingValues.isEmpty(0)) -> incomingValues.first(0) else -> null } }