commit f03a19f0058c3bed63ac47c3bffb012403b24599
parent 56c005892488e4d46745165c175ea5e669575485
Author: Marc Stibane <marc@taler.net>
Date: Tue, 7 May 2024 15:39:04 +0200
cleanup
Diffstat:
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/TalerWallet1/Helper/CurrencySpecification.swift b/TalerWallet1/Helper/CurrencySpecification.swift
@@ -193,10 +193,6 @@ public struct CurrencyInfo {
}
}
-public struct CurrencySpecification2: Codable, Sendable {
- let currencySpecification: CurrencySpecification
-}
-
public struct CurrencySpecification: Codable, Sendable {
enum CodingKeys: String, CodingKey {
case name = "name"
diff --git a/TalerWallet1/Model/Model+Exchange.swift b/TalerWallet1/Model/Model+Exchange.swift
@@ -146,7 +146,9 @@ fileprivate struct AddExchange: WalletBackendFormattedRequest {
/// A request to get info about a currency
fileprivate struct GetCurrencySpecification: WalletBackendFormattedRequest {
- typealias Response = CurrencySpecification2
+ struct Response: Codable, Sendable {
+ let currencySpecification: CurrencySpecification
+ }
func operation() -> String { "getCurrencySpecification" }
func args() -> Args { Args(scope: scope) }