commit ffe9227f9b2721c9e19ce3144785d39d5cdcc583
parent 0a5ea3ec16e275ef33cf05fa039d9d4cebdf02bf
Author: Joel-Haeberli <haebu@rubigen.ch>
Date: Tue, 4 Jun 2024 08:59:06 +0200
chore: wallet integration testing
Diffstat:
5 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/c2ec/api-bank-integration.go b/c2ec/api-bank-integration.go
@@ -403,7 +403,7 @@ func formatWithdrawalOrErrorStatus(w *Withdrawal) ([]byte, int) {
Amount: FormatAmount(amount, CONFIG.Server.CurrencyFractionDigits),
CardFees: FormatAmount(fees, CONFIG.Server.CurrencyFractionDigits),
SenderWire: client.FormatPayto(w),
- WireTypes: []string{operator.PaytoTargetType},
+ WireTypes: []string{operator.PaytoTargetType, "IBAN"},
ReservePubKey: EddsaPublicKey((encodeCrock(w.ReservePubKey))),
SuggestedExchange: CONFIG.Server.ExchangeBaseUrl,
RequiredExchange: CONFIG.Server.ExchangeBaseUrl,
diff --git a/c2ec/c2ec-config.conf b/c2ec/c2ec-config.conf
@@ -27,7 +27,9 @@ FAIL_ON_MISSING_ATTESTORS = false
# This exchange will be sent to the wallet in order
# to allow the withdrawal through it.
-EXCHANGE_BASE_URL = "http://exchange.test.net"
+# MAKE SURE TO DEFINE THE URL IN CANONICAL FORM (ending with /)
+# withdrawals will not work otherwise
+EXCHANGE_BASE_URL = "http://exchange.test.net/"
# The account where the exchange receives payments
# of the providers. Must be the same, in the providers
diff --git a/c2ec/c2ec-config.yaml b/c2ec/c2ec-config.yaml
@@ -6,7 +6,7 @@ c2ec:
unix-socket-path: "c2ec.sock"
unix-path-mode: 660
fail-on-missing-attestors: false # forced if prod=true
- exchange-base-url: "http://exchange.test.net"
+ exchange-base-url: "http://exchange.test.net/" # MAKE SURE TO DEFINE THE URL IN CANONICAL FORM (ending with /)
credit-account: "payto://IBAN/CH50030202099498" # this account must be specified at the providers backends as well
currency: "CHF"
currency-fraction-digits: 2
diff --git a/docs/content/acknowledgements.tex b/docs/content/acknowledgements.tex
@@ -6,6 +6,6 @@ Also I thank my colleagues from the class who motivated me during the thesis. Es
Additionally, I would like to thank Meret Staub for her critical thoughts during the proofreading of the thesis.
-Thank you to Bruno Fauser generously providing the title picture.
+Thank you to Bruno Fauser who generously provided the title picture to me.
Last but not least I thank Flurina from all my heart. You were not mad at me when I cancelled dinner, because I wanted to write some code.
diff --git a/docs/thesis.pdf b/docs/thesis.pdf
Binary files differ.