[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-ios] 57/69: use cent initializer
From: |
gnunet |
Subject: |
[taler-taler-ios] 57/69: use cent initializer |
Date: |
Fri, 19 Jan 2024 09:02:30 +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 20225fb5c04da51927e043f384d97ded6d370911
Author: Marc Stibane <marc@taler.net>
AuthorDate: Thu Jan 18 00:51:38 2024 +0100
use cent initializer
---
TalerWallet1/Model/Model+Settings.swift | 6 +++---
TalerWallet1/Views/HelperViews/QRCodeDetailView.swift | 3 ++-
TalerWallet1/Views/Peer2peer/SendAmount.swift | 2 +-
3 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/TalerWallet1/Model/Model+Settings.swift
b/TalerWallet1/Model/Model+Settings.swift
index 288e22b..7aef9fc 100644
--- a/TalerWallet1/Model/Model+Settings.swift
+++ b/TalerWallet1/Model/Model+Settings.swift
@@ -35,7 +35,7 @@ fileprivate struct WithdrawTestBalanceRequest:
WalletBackendFormattedRequest {
extension WalletModel {
@MainActor func loadTestKudosM(test: Bool)
async throws { // M for MainActor
- let amount = Amount(currency: test ? TESTCURRENCY : DEMOCURRENCY,
integer: 11, fraction: 0)
+ let amount = Amount(currency: test ? TESTCURRENCY : DEMOCURRENCY,
cent: 1100)
let request = WithdrawTestBalanceRequest(amount: amount,
// bankBaseUrl: test ?
TESTBANK : DEMOBANK,
corebankApiBaseUrl: test ?
TESTBANK : DEMOBANK,
@@ -80,8 +80,8 @@ fileprivate struct RunIntegrationTest:
WalletBackendFormattedRequest {
extension WalletModel {
@MainActor func runIntegrationTestM(newVersion: Bool, test: Bool)
async throws { // M for MainActor
- let amountW = Amount(currency: test ? TESTCURRENCY : DEMOCURRENCY,
integer: 3, fraction: 0)
- let amountS = Amount(currency: test ? TESTCURRENCY : DEMOCURRENCY,
integer: 1, fraction: 0)
+ let amountW = Amount(currency: test ? TESTCURRENCY : DEMOCURRENCY,
cent: 300)
+ let amountS = Amount(currency: test ? TESTCURRENCY : DEMOCURRENCY,
cent: 100)
let request = RunIntegrationTest(newVersion: newVersion,
exchangeBaseUrl: test ? TESTEXCHANGE
: DEMOEXCHANGE,
// bankBaseUrl: (test ? TESTBANK :
DEMOBANK),
diff --git a/TalerWallet1/Views/HelperViews/QRCodeDetailView.swift
b/TalerWallet1/Views/HelperViews/QRCodeDetailView.swift
index 2af6d8a..807b74a 100644
--- a/TalerWallet1/Views/HelperViews/QRCodeDetailView.swift
+++ b/TalerWallet1/Views/HelperViews/QRCodeDetailView.swift
@@ -62,8 +62,9 @@ fileprivate struct ContentView: View {
@State var talerURI: String =
"taler://pay-push/exchange.demo.taler.net/95ZG4D1AGFGZQ7CNQ1V49D3FT18HXKA6HQT4X3XME9YSJQVFQ520"
var body: some View {
+ let amount = Amount(currency: LONGCURRENCY, cent: 123)
List {
- QRCodeDetailView(talerURI: talerURI, incoming: false, amount: nil)
+ QRCodeDetailView(talerURI: talerURI, incoming: false, amount:
amount)
}
}
}
diff --git a/TalerWallet1/Views/Peer2peer/SendAmount.swift
b/TalerWallet1/Views/Peer2peer/SendAmount.swift
index 907063b..b5c4f5c 100644
--- a/TalerWallet1/Views/Peer2peer/SendAmount.swift
+++ b/TalerWallet1/Views/Peer2peer/SendAmount.swift
@@ -150,7 +150,7 @@ fileprivate struct Preview_Content: View {
@State private var summary: String = ""
var body: some View {
- let amount = Amount(currency: TESTCURRENCY, integer: 10, fraction: 0)
+ let amount = Amount(currency: TESTCURRENCY, cent: 1000)
SendAmount(stack: CallStack("Preview"),
amountAvailable: amount,
amountToTransfer: $amountToPreview,
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-taler-ios] 42/69: remove payto scheme, (continued)
- [taler-taler-ios] 42/69: remove payto scheme, gnunet, 2024/01/19
- [taler-taler-ios] 48/69: fix fractions, gnunet, 2024/01/19
- [taler-taler-ios] 66/69: InterfaceOrientation, gnunet, 2024/01/19
- [taler-taler-ios] 41/69: AppIcon blue, gnunet, 2024/01/19
- [taler-taler-ios] 38/69: remove, gnunet, 2024/01/19
- [taler-taler-ios] 39/69: Bump version to 0.9.3 (34), gnunet, 2024/01/19
- [taler-taler-ios] 35/69: Markdown for ToS, gnunet, 2024/01/19
- [taler-taler-ios] 37/69: dbg+cleanup, gnunet, 2024/01/19
- [taler-taler-ios] 53/69: Summary no longer twice, gnunet, 2024/01/19
- [taler-taler-ios] 34/69: tintcolor (blue) for links, gnunet, 2024/01/19
- [taler-taler-ios] 57/69: use cent initializer,
gnunet <=
- [taler-taler-ios] 64/69: show minor in tx details, gnunet, 2024/01/19
- [taler-taler-ios] 47/69: single routine for rendering amounts, gnunet, 2024/01/19
- [taler-taler-ios] 44/69: payment_received only for withdrawals, gnunet, 2024/01/19