gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-taler-ios] 178/204: remove etag


From: gnunet
Subject: [taler-taler-ios] 178/204: remove etag
Date: Thu, 05 Dec 2024 23:52:26 +0100

This is an automated email from the git hooks/post-receive script.

marc-stibane pushed a commit to branch master
in repository taler-ios.

commit 5ba219f991205a213cfd21684ae7b4f024a17d26
Author: Marc Stibane <marc@taler.net>
AuthorDate: Tue Nov 26 22:49:17 2024 +0100

    remove etag
---
 TalerWallet1/Model/Model+Withdraw.swift                            | 7 ++-----
 .../Views/Sheets/WithdrawBankIntegrated/WithdrawTOSView.swift      | 3 +--
 2 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/TalerWallet1/Model/Model+Withdraw.swift 
b/TalerWallet1/Model/Model+Withdraw.swift
index f2d0094..34c9a52 100644
--- a/TalerWallet1/Model/Model+Withdraw.swift
+++ b/TalerWallet1/Model/Model+Withdraw.swift
@@ -157,14 +157,12 @@ fileprivate struct GetExchangeTermsOfService: 
WalletBackendFormattedRequest {
 fileprivate struct SetExchangeTOSAccepted: WalletBackendFormattedRequest {
     struct Response: Decodable {}   // no result - getting no error back means 
success
     func operation() -> String { "setExchangeTosAccepted" }
-    func args() -> Args { Args(exchangeBaseUrl: baseUrl, etag: etag) }
+    func args() -> Args { Args(exchangeBaseUrl: baseUrl) }
 
     var baseUrl: String
-    var etag: String
 
     struct Args: Encodable {
         var exchangeBaseUrl: String
-        var etag: String
     }
 }
 // MARK: -
@@ -277,10 +275,9 @@ extension WalletModel {
     }
 
     nonisolated func setExchangeTOSAccepted(_ baseUrl: String,
-                                                 etag: String,
                                           viewHandles: Bool = false)
       async throws -> Decodable {
-        let request = SetExchangeTOSAccepted(baseUrl: baseUrl, etag: etag)
+        let request = SetExchangeTOSAccepted(baseUrl: baseUrl)
         let response = try await sendRequest(request, ASYNCDELAY, viewHandles: 
viewHandles)
         return response
     }
diff --git 
a/TalerWallet1/Views/Sheets/WithdrawBankIntegrated/WithdrawTOSView.swift 
b/TalerWallet1/Views/Sheets/WithdrawBankIntegrated/WithdrawTOSView.swift
index 8db3538..12716bf 100644
--- a/TalerWallet1/Views/Sheets/WithdrawBankIntegrated/WithdrawTOSView.swift
+++ b/TalerWallet1/Views/Sheets/WithdrawBankIntegrated/WithdrawTOSView.swift
@@ -38,8 +38,7 @@ struct WithdrawTOSView: View {
     @MainActor
     func viewDidLoad() async {
         if let exchangeTOS, let exchangeBaseUrl {
-            _ = try? await model.setExchangeTOSAccepted(exchangeBaseUrl,
-                                                        etag: 
exchangeTOS.currentEtag)
+            _ = try? await model.setExchangeTOSAccepted(exchangeBaseUrl)
             if acceptAction != nil {
                 await acceptAction!()
             } else { // just go back - caller will reload

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]