summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2018-03-21 15:48:12 +0100
committerMarcello Stanisci <stanisci.m@gmail.com>2018-03-21 17:13:27 +0100
commit9cc813adec097191c4c2c0da08337ffd0dcf6f6e (patch)
tree3e0b4ef59feea99c884921d9ce9dabe3b910192c /src
parent8fe985c7673d3ad014e8d2dcf304a60a702ee8b3 (diff)
downloadexchange-9cc813adec097191c4c2c0da08337ffd0dcf6f6e.tar.gz
exchange-9cc813adec097191c4c2c0da08337ffd0dcf6f6e.tar.bz2
exchange-9cc813adec097191c4c2c0da08337ffd0dcf6f6e.zip
build exchange url at (withdraw) command creation.
Diffstat (limited to 'src')
-rw-r--r--src/exchange-lib/testing_api_cmd_withdraw.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/exchange-lib/testing_api_cmd_withdraw.c b/src/exchange-lib/testing_api_cmd_withdraw.c
index 5f3808a78..8ab5e1d2d 100644
--- a/src/exchange-lib/testing_api_cmd_withdraw.c
+++ b/src/exchange-lib/testing_api_cmd_withdraw.c
@@ -354,6 +354,8 @@ TALER_TESTING_cmd_withdraw_amount
}
ws->expected_response_code = expected_response_code;
ws->exchange = exchange;
+ ws->exchange_url = MAH_path_to_url (exchange, "/");
+
cmd.cls = ws;
cmd.label = label;
cmd.run = &withdraw_run;
@@ -390,7 +392,7 @@ TALER_TESTING_cmd_withdraw_denomination
ws->pk = dk;
ws->expected_response_code = expected_response_code;
ws->exchange = exchange;
- ws->exchange_url = MAH_path_to_url (ws->exchange, "/");
+ ws->exchange_url = MAH_path_to_url (exchange, "/");
cmd.cls = ws;
cmd.label = label;