gnunet-svn
[Top][All Lists]
Advanced

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

[taler-taler-ios] 05/11: getCurrencyInfo(scope)


From: gnunet
Subject: [taler-taler-ios] 05/11: getCurrencyInfo(scope)
Date: Sat, 21 Oct 2023 21:10:03 +0200

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 1dfae8887cad2631fa2b13af8c8fea31867da1c3
Author: Marc Stibane <marc@taler.net>
AuthorDate: Fri Oct 20 08:50:06 2023 +0200

    getCurrencyInfo(scope)
---
 TalerWallet1/Model/Model+Exchange.swift | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/TalerWallet1/Model/Model+Exchange.swift 
b/TalerWallet1/Model/Model+Exchange.swift
index 6735dc0..0622245 100644
--- a/TalerWallet1/Model/Model+Exchange.swift
+++ b/TalerWallet1/Model/Model+Exchange.swift
@@ -156,11 +156,13 @@ extension WalletModel {
         _ = try await sendRequest(request)
     }
 
-    @MainActor func getCurrencySpecificationM(scope: ScopeInfo)
-      async throws -> CurrencySpecification {   // M for MainActor
+    func getCurrencyInfo(scope: ScopeInfo)
+      async throws -> CurrencyInfo {
         let request = GetCurrencySpecification(scope: scope)
         let response = try await sendRequest(request, ASYNCDELAY)
-        return response
+        return CurrencyInfo(scope: scope, specs: 
response.currencySpecification,
+                        formatter: CurrencyFormatter.formatter(scope: scope,
+                                                               specs: 
response.currencySpecification))
     }
 
 }

-- 
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]