taler-ios

iOS apps for GNU Taler (wallet)
Log | Files | Refs | README | LICENSE

commit 8bff990e6d6ad42b212d99b6b24dee9475c90968
parent 81a04625c9d1d1cd5bc51d0aa72250520d7f8f93
Author: Marc Stibane <marc@taler.net>
Date:   Sat, 26 Apr 2025 05:15:00 +0200

make oldTxState optional

Diffstat:
MTalerWallet1/Backend/WalletCore.swift | 2+-
MTalerWallet1/Model/Transaction.swift | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/TalerWallet1/Backend/WalletCore.swift b/TalerWallet1/Backend/WalletCore.swift @@ -215,7 +215,7 @@ extension WalletCore { guard type != .refresh else { return } let newMajor = decoded.newTxState.major let newMinor = decoded.newTxState.minor - let oldMinor = decoded.oldTxState.minor + let oldMinor = decoded.oldTxState?.minor switch newMajor { case .done: logger.info("Done: \(decoded.transactionId, privacy: .private(mask: .hash))") diff --git a/TalerWallet1/Model/Transaction.swift b/TalerWallet1/Model/Transaction.swift @@ -153,7 +153,7 @@ struct TransactionTransition: Codable { // Notification case transition = "transaction-state-transition" } var type: TransitionType - var oldTxState: TransactionState + var oldTxState: TransactionState? var newTxState: TransactionState var transactionId: String var experimentalUserData: String? // KYC