commit cc2b764f447e0c81c19c0641cee6183e85052913
parent a4ea011a17a072562e65287b0621af5a4c586b59
Author: Marc Stibane <marc@taler.net>
Date: Thu, 10 Sep 2026 15:13:53 +0200
any minor
Diffstat:
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/TalerWallet1/Model/Transaction.swift b/TalerWallet1/Model/Transaction.swift
@@ -50,6 +50,7 @@ enum TransactionMinorState: String, Codable {
case submitPayment = "submit-payment"
case track // finalizing deposit - late KYC / failure
case withdraw
+ case any = "*"
// Placeholder until D37 is fully implemented
case unknown
diff --git a/TalerWallet1/Model/WalletModel.swift b/TalerWallet1/Model/WalletModel.swift
@@ -326,11 +326,11 @@ fileprivate struct JSONTransactionById: WalletBackendFormattedRequest {
extension WalletModel {
nonisolated func waitTransactionState(_ txId: String, token: String)
async throws {
- let txState = TransactionState(major: .dialog, minor: nil, working: nil)
+ let txState = TransactionState(major: .dialog, minor: .any, working: nil)
let request = WaitTransactionState(txId: txId, txState: txState, token: token)
- let controller = Controller.shared
- controller.progressOperation = request.operation
- controller.progressToken = txId
+ let controller = Controller.shared
+ controller.progressOperation = request.operation
+ controller.progressToken = txId
_ = try await sendRequest(request)
}
nonisolated func cancelProgressToken(_ op: String, token: String)