gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [taler-exchange] branch master updated: address double-slas


From: gnunet
Subject: [GNUnet-SVN] [taler-exchange] branch master updated: address double-slash situation.
Date: Mon, 23 Apr 2018 16:00:16 +0200

This is an automated email from the git hooks/post-receive script.

marcello pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new b8ab8f0  address double-slash situation.
b8ab8f0 is described below

commit b8ab8f01c7c1deee65091c9dfb40401a0ba420d2
Author: Marcello Stanisci <address@hidden>
AuthorDate: Mon Apr 23 15:59:48 2018 +0200

    address double-slash situation.
---
 src/bank-lib/test_bank_api_new.c       |  1 +
 src/bank-lib/testing_api_cmd_history.c | 12 +++++++++---
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/src/bank-lib/test_bank_api_new.c b/src/bank-lib/test_bank_api_new.c
index 49d1fe8..eade780 100644
--- a/src/bank-lib/test_bank_api_new.c
+++ b/src/bank-lib/test_bank_api_new.c
@@ -94,6 +94,7 @@ run (void *cls,
        "subject 1",
        "http://exchange.com/";),
 
+    /* bank gives to exchange */
     TALER_TESTING_cmd_fakebank_transfer_with_subject
       ("deposit-2",
        "KUDOS:5.01",
diff --git a/src/bank-lib/testing_api_cmd_history.c 
b/src/bank-lib/testing_api_cmd_history.c
index 6f00536..ccd29e1 100644
--- a/src/bank-lib/testing_api_cmd_history.c
+++ b/src/bank-lib/testing_api_cmd_history.c
@@ -184,7 +184,7 @@ print_expected (struct History *h,
   for (uint64_t i=0;i<h_len;i++)
   {
     GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
-                "H(%llu): %s%s (serial: %llu, subject: %s, to: %s)\n",
+                "H(%llu): %s%s (serial: %llu, subject: %s, counterpart: %s)\n",
                 (unsigned long long) i,
                 (TALER_BANK_DIRECTION_CREDIT == h[i].direction) ? "+" : "-",
                 TALER_amount2s (&h[i].details.amount),
@@ -409,8 +409,11 @@ build_history (struct TALER_TESTING_Interpreter *is,
       h[total].direction = TALER_BANK_DIRECTION_CREDIT;
       if (GNUNET_YES == cancelled)
         h[total].direction |= TALER_BANK_DIRECTION_CANCEL;
+
       GNUNET_asprintf (&h[total].details.account_url,
-                       "payto://x-taler-bank/%s/%llu",
+                       ('/' == hs->bank_url[strlen(hs->bank_url) -1])
+                       ? "payto://x-taler-bank/%s%llu"
+                       : "payto://x-taler-bank/%s/%llu",
                        hs->bank_url,
                        (unsigned long long) *debit_account_no);
     }
@@ -420,8 +423,11 @@ build_history (struct TALER_TESTING_Interpreter *is,
       h[total].direction = TALER_BANK_DIRECTION_DEBIT;
       if (GNUNET_YES == cancelled)
         h[total].direction |= TALER_BANK_DIRECTION_CANCEL;
+
       GNUNET_asprintf (&h[total].details.account_url,
-                       "payto://x-taler-bank/%s/%llu",
+                       ('/' == hs->bank_url[strlen(hs->bank_url) -1])
+                       ? "payto://x-taler-bank/%s%llu"
+                       : "payto://x-taler-bank/%s/%llu",
                        hs->bank_url,
                        (unsigned long long) *credit_account_no);
     }

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]