commit c2b8d13fc0c0360ca1f3b66404f41ce1d08c1122
parent 5a9174fda280a87cef83d16a3430aae9e388bc0b
Author: Torsten Grote <t@grobox.de>
Date: Thu, 13 Apr 2023 10:02:57 -0300
[wallet] Remove exchangeBaseUrl from Refresh transactions
Diffstat:
2 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/wallet/src/main/java/net/taler/wallet/transactions/Transactions.kt b/wallet/src/main/java/net/taler/wallet/transactions/Transactions.kt
@@ -264,7 +264,6 @@ class TransactionRefresh(
override val transactionId: String,
override val timestamp: Timestamp,
override val extendedStatus: ExtendedStatus,
- val exchangeBaseUrl: String,
override val error: TalerErrorInfo? = null,
override val amountRaw: Amount,
override val amountEffective: Amount,
diff --git a/wallet/src/main/java/net/taler/wallet/withdraw/TransactionWithdrawalComposable.kt b/wallet/src/main/java/net/taler/wallet/withdraw/TransactionWithdrawalComposable.kt
@@ -98,7 +98,6 @@ fun TransactionWithdrawalComposable(
)
when (t) {
is TransactionWithdrawal -> t.exchangeBaseUrl
- is TransactionRefresh -> t.exchangeBaseUrl
else -> null
}?.let { url ->
TransactionInfoComposable(
@@ -143,7 +142,6 @@ fun TransactionRefreshComposablePreview() {
transactionId = "transactionId",
timestamp = Timestamp.fromMillis(System.currentTimeMillis() - 360 * 60 * 1000),
extendedStatus = ExtendedStatus.Pending,
- exchangeBaseUrl = "https://exchange.demo.taler.net/",
amountRaw = Amount.fromDouble("TESTKUDOS", 42.23),
amountEffective = Amount.fromDouble("TESTKUDOS", 42.1337),
error = TalerErrorInfo(code = TalerErrorCode.WALLET_WITHDRAWAL_KYC_REQUIRED),