commit a6f21a5fb8e143000cf340aeb8c5bd066fd50ee6
parent a19ca1c95f2159f541e75ffbf734038a62caf07d
Author: Marc Stibane <marc@taler.net>
Date: Sun, 27 Sep 2026 18:46:10 +0200
DEMOAMOUNT
Diffstat:
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/TalerWallet1/Controllers/PublicConstants.swift b/TalerWallet1/Controllers/PublicConstants.swift
@@ -1,5 +1,5 @@
/*
- * This file is part of GNU Taler, ©2022-25 Taler Systems S.A.
+ * This file is part of GNU Taler, ©2022-26 Taler Systems S.A.
* See LICENSE.md
*/
/**
@@ -188,6 +188,7 @@ public let HEADEXCHANGE = HTTPS + EXCHANGE + HEAD + "/"
public let ARS_AGE_EXCHANGE = HTTPS + "exchange-age.taler.ar/"
public let ARS_EXP_EXCHANGE = HTTPS + "exchange-expensive.taler.ar/"
+public let DEMOAMOUNT = UInt64(2500)
public let DEMOCURRENCY = "KUDOS"
public let TESTCURRENCY = "TESTKUDOS"
//public let LONGCURRENCY = "gold-pressed Latinum" // 20 characters, with dash and space
diff --git a/TalerWallet1/Views/Main/WalletEmptyView.swift b/TalerWallet1/Views/Main/WalletEmptyView.swift
@@ -243,7 +243,7 @@ struct WalletEmptyView: View {
Button(title) {
withDrawStarted = true // don't run twice
Task { // runs on MainActor
- let amount = Amount(currency: DEMOCURRENCY, cent: 2500)
+ let amount = Amount(currency: DEMOCURRENCY, cent: DEMOAMOUNT)
symLog.log("Withdraw 25 KUDOS")
try? await model.loadTestKudos(0, amount: amount)
DispatchQueue.main.asyncAfter(deadline: .now() + 5) {