commit 7950eb59bf07e5375457e2ab207b21b3c572be24
parent 626e8f9a3ed1d77269f042883ba70f6d9bcd7c2a
Author: Marc Stibane <marc@taler.net>
Date: Fri, 13 Sep 2024 09:27:44 +0200
GetMaxDepositAmount
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/TalerWallet1/Model/Model+Deposit.swift b/TalerWallet1/Model/Model+Deposit.swift
@@ -37,7 +37,6 @@ extension WalletModel {
}
}
// MARK: - Deposit
-
struct DepositWireTypesForCurrencyResponse: Codable {
/// can be used to pre-filter payment target types to offer the user as an input option
let wireTypes: [String]
@@ -85,9 +84,9 @@ fileprivate struct GetMaxDepositAmount: WalletBackendFormattedRequest {
}
}
extension WalletModel {
- @MainActor // M for MainActor
+ @MainActor // M for MainActor
func getMaxDepositAmountM(_ currency: String, scope: ScopeInfo, viewHandles: Bool = false)
- async throws -> Amount {
+ async throws -> Amount {
let request = GetMaxDepositAmount(currency: currency, scope: scope)
let response = try await sendRequest(request, ASYNCDELAY, viewHandles: viewHandles)
return response.rawAmount