aboutsummaryrefslogtreecommitdiff
path: root/src/testing/testing_api_cmd_recoup_refresh.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-02-08 14:02:27 +0100
committerChristian Grothoff <christian@grothoff.org>2022-02-08 14:02:27 +0100
commitb3cf788424d641fb945fe4c9abe29155a6c6e962 (patch)
tree1a2c6b637dde250f5cbceefa6581cdb4e8dcea61 /src/testing/testing_api_cmd_recoup_refresh.c
parent8cbe16a2203d581ad2bdfcd7240653d1ee416634 (diff)
downloadexchange-b3cf788424d641fb945fe4c9abe29155a6c6e962.tar.xz
-more test fixes
Diffstat (limited to 'src/testing/testing_api_cmd_recoup_refresh.c')
-rw-r--r--src/testing/testing_api_cmd_recoup_refresh.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/testing/testing_api_cmd_recoup_refresh.c b/src/testing/testing_api_cmd_recoup_refresh.c
index a1f34f70e..fd8f1c36c 100644
--- a/src/testing/testing_api_cmd_recoup_refresh.c
+++ b/src/testing/testing_api_cmd_recoup_refresh.c
@@ -230,6 +230,7 @@ recoup_refresh_run (void *cls,
{
struct RecoupRefreshState *ps = cls;
const struct TALER_TESTING_Command *coin_cmd;
+ const struct TALER_TESTING_Command *melt_cmd;
const struct TALER_CoinSpendPrivateKeyP *coin_priv;
const struct TALER_EXCHANGE_DenomPublicKey *denom_pub;
const struct TALER_DenominationSignature *coin_sig;
@@ -251,13 +252,21 @@ recoup_refresh_run (void *cls,
coin_cmd = TALER_TESTING_interpreter_lookup_command (is,
cref);
GNUNET_free (cref);
-
if (NULL == coin_cmd)
{
GNUNET_break (0);
TALER_TESTING_interpreter_fail (is);
return;
}
+ melt_cmd = TALER_TESTING_interpreter_lookup_command (is,
+ ps->melt_reference);
+ if (NULL == melt_cmd)
+ {
+ GNUNET_break (0);
+ TALER_TESTING_interpreter_fail (is);
+ return;
+ }
+
if (GNUNET_OK !=
TALER_TESTING_get_trait_coin_priv (coin_cmd,
idx,
@@ -268,7 +277,7 @@ recoup_refresh_run (void *cls,
return;
}
if (GNUNET_OK !=
- TALER_TESTING_get_trait_exchange_wd_value (coin_cmd,
+ TALER_TESTING_get_trait_exchange_wd_value (melt_cmd,
idx,
&ewv))
{