taler-ios

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

commit 6dcacc8d56fbdc05e4d0126aa2b0e2c542be439a
parent ee7ad70f50081262a205deb9042be5344b37b068
Author: Marc Stibane <marc@taler.net>
Date:   Thu, 19 Dec 2024 20:47:16 +0100

API wording

Diffstat:
MTalerWallet1/Model/Model+Withdraw.swift | 2+-
MTalerWallet1/Views/Sheets/WithdrawExchangeV.swift | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/TalerWallet1/Model/Model+Withdraw.swift b/TalerWallet1/Model/Model+Withdraw.swift @@ -235,7 +235,7 @@ fileprivate struct GetQrCodesForPayto: WalletBackendFormattedRequest { // MARK: - extension WalletModel { /// load withdraw-exchange details. Networking involved - nonisolated func loadWithdrawalExchangeForUri(_ talerUri: String, + nonisolated func prepareWithdrawExchange(_ talerUri: String, viewHandles: Bool = false) async throws -> WithdrawExchangeResponse { let request = PrepareWithdrawExchange(talerUri: talerUri) diff --git a/TalerWallet1/Views/Sheets/WithdrawExchangeV.swift b/TalerWallet1/Views/Sheets/WithdrawExchangeV.swift @@ -29,7 +29,7 @@ struct WithdrawExchangeV: View { private func viewDidLoad() async { if exchange == nil { symLog.log(".task") - if let withdrawExchange = try? await model.loadWithdrawalExchangeForUri(url.absoluteString) { + if let withdrawExchange = try? await model.prepareWithdrawExchange(url.absoluteString) { let baseUrl = withdrawExchange.exchangeBaseUrl symLog.log("getExchangeByUrl(\(baseUrl))") if let exc = try? await model.getExchangeByUrl(url: baseUrl) {