summaryrefslogtreecommitdiff
path: root/src/bank-lib/test_bank_interpreter.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-05-15 15:53:21 +0200
committerChristian Grothoff <christian@grothoff.org>2017-05-16 11:05:00 +0200
commit7c28823cafa0692849deae506e81efdbc07f2ed3 (patch)
treeae955b26766f21370e1da7d7c367c25bc9dec422 /src/bank-lib/test_bank_interpreter.c
parentbe3b891dbd9b1532b9dca91629d478cc3933dfdc (diff)
downloadexchange-7c28823cafa0692849deae506e81efdbc07f2ed3.tar.gz
exchange-7c28823cafa0692849deae506e81efdbc07f2ed3.tar.bz2
exchange-7c28823cafa0692849deae506e81efdbc07f2ed3.zip
handle base32-wire transfer subject being followed by space+exchange base url in wire plugin and fakebank
Diffstat (limited to 'src/bank-lib/test_bank_interpreter.c')
-rw-r--r--src/bank-lib/test_bank_interpreter.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/bank-lib/test_bank_interpreter.c b/src/bank-lib/test_bank_interpreter.c
index bfd744a0..94b3b0e5 100644
--- a/src/bank-lib/test_bank_interpreter.c
+++ b/src/bank-lib/test_bank_interpreter.c
@@ -323,9 +323,17 @@ build_history (struct InterpreterState *is,
/* h[total].execution_date; // unknown here */
h[total].serial_id
= pos->details.admin_add_incoming.serial_id;
- h[total].details.wire_transfer_subject
- = GNUNET_STRINGS_data_to_string_alloc (&pos->details.admin_add_incoming.wtid,
- sizeof (struct TALER_WireTransferIdentifierRawP));
+ {
+ char *ws;
+
+ ws = GNUNET_STRINGS_data_to_string_alloc (&pos->details.admin_add_incoming.wtid,
+ sizeof (struct TALER_WireTransferIdentifierRawP));
+ GNUNET_asprintf (&h[total].details.wire_transfer_subject,
+ "%s %s",
+ ws,
+ pos->details.admin_add_incoming.exchange_base_url);
+ GNUNET_free (ws);
+ }
total++;
}
}