[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] 04/07: move default exchange selection at /confirm
From: |
gnunet |
Subject: |
[libeufin] 04/07: move default exchange selection at /confirm |
Date: |
Mon, 20 Dec 2021 17:44:47 +0100 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository libeufin.
commit 6e1837c6680eb6d32153961d89ff992712af33f2
Author: ms <ms@taler.net>
AuthorDate: Sun Dec 19 22:04:04 2021 +0100
move default exchange selection at /confirm
---
sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
index 652991f2..7cfd3915 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
@@ -1064,7 +1064,7 @@ val sandboxApp: Application.() -> Unit = {
)
wo.reservePub = body.reserve_pub
val demobank = ensureDemobank(call)
- wo.selectedExchangePayto = body.selected_exchange ?:
demobank.suggestedExchangePayto
+ wo.selectedExchangePayto = body.selected_exchange
wo.selectionDone = true
wo.confirmationDone // == false
}
@@ -1217,6 +1217,13 @@ val sandboxApp: Application.() -> Unit = {
"Cannot confirm a unselected withdrawal: " +
"specify exchange and reserve public key
via Integration API first."
)
+ /**
+ * The wallet chose not to select any exchange, use
the default.
+ */
+ val demobank = ensureDemobank(call)
+ if (wo.selectedExchangePayto == null) {
+ wo.selectedExchangePayto =
demobank.suggestedExchangePayto
+ }
val exchangeBankAccount = getBankAccountFromPayto(
wo.selectedExchangePayto ?: throw
internalServerError(
"Cannot withdraw without an exchange."
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libeufin] branch master updated (4482f8d4 -> 1d50e1fc), gnunet, 2021/12/20
- [libeufin] 01/07: serve SPA, gnunet, 2021/12/20
- [libeufin] 02/07: t_ms -> t_s, gnunet, 2021/12/20
- [libeufin] 03/07: Withdrawal., gnunet, 2021/12/20
- [libeufin] 07/07: SPA, gnunet, 2021/12/20
- [libeufin] 05/07: Withdrawal., gnunet, 2021/12/20
- [libeufin] 06/07: SPA, gnunet, 2021/12/20
- [libeufin] 04/07: move default exchange selection at /confirm,
gnunet <=