diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2018-01-23 10:28:24 +0100 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2018-02-12 16:12:07 +0100 |
commit | fe6960cce854cd4c665a27c4368e4397c8e7bcfb (patch) | |
tree | 162a95572079b3e7a014cb845ee028329a06f5f8 /src/exchange-lib/testing_api_trait_denom_sig.c | |
parent | b198bb3867b6a15c65a8860af12d7a634de906a0 (diff) | |
download | exchange-fe6960cce854cd4c665a27c4368e4397c8e7bcfb.tar.xz |
Implement new traits-based tests.
Diffstat (limited to 'src/exchange-lib/testing_api_trait_denom_sig.c')
-rw-r--r-- | src/exchange-lib/testing_api_trait_denom_sig.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/exchange-lib/testing_api_trait_denom_sig.c b/src/exchange-lib/testing_api_trait_denom_sig.c index 66785c7f4..9578277ce 100644 --- a/src/exchange-lib/testing_api_trait_denom_sig.c +++ b/src/exchange-lib/testing_api_trait_denom_sig.c @@ -40,22 +40,22 @@ */ int TALER_TESTING_get_trait_denom_sig (const struct TALER_TESTING_Command *cmd, - const char *selector, + unsigned int index, struct TALER_DenominationSignature **denom_sig) { return cmd->traits (cmd->cls, (void **) denom_sig, TALER_TESTING_TRAIT_DENOM_SIG, - selector); + index); } struct TALER_TESTING_Trait -TALER_TESTING_make_trait_denom_sig (const char *selector, +TALER_TESTING_make_trait_denom_sig (unsigned int index, const struct TALER_DenominationSignature *denom_sig) { struct TALER_TESTING_Trait ret = { - .selector = selector, + .index = index, .trait_name = TALER_TESTING_TRAIT_DENOM_SIG, .ptr = (const void *) denom_sig }; |