aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-cli
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2022-09-08 14:02:09 +0200
committerFlorian Dold <florian@dold.me>2022-09-08 14:02:09 +0200
commit9b2d6d766f0192923d337ab8c69a332ebdc20bf1 (patch)
tree3f7b46f1346177d13b8f6b0bc9b9dedc637f5927 /packages/taler-wallet-cli
parent2119daba175e85e56f767a03565dbb87e533d031 (diff)
include age commitment proof in refreshed coins
Diffstat (limited to 'packages/taler-wallet-cli')
-rw-r--r--packages/taler-wallet-cli/src/integrationtests/test-age-restrictions-merchant.ts22
1 files changed, 22 insertions, 0 deletions
diff --git a/packages/taler-wallet-cli/src/integrationtests/test-age-restrictions-merchant.ts b/packages/taler-wallet-cli/src/integrationtests/test-age-restrictions-merchant.ts
index 27c36ae40..01ddac4d9 100644
--- a/packages/taler-wallet-cli/src/integrationtests/test-age-restrictions-merchant.ts
+++ b/packages/taler-wallet-cli/src/integrationtests/test-age-restrictions-merchant.ts
@@ -44,6 +44,28 @@ export async function runAgeRestrictionsMerchantTest(t: GlobalTestState) {
const walletThree = new WalletCli(t, "walletThree");
{
+ const walletZero = new WalletCli(t, "walletZero");
+
+ await withdrawViaBank(t, {
+ wallet: walletZero,
+ bank,
+ exchange,
+ amount: "TESTKUDOS:20",
+ restrictAge: 13,
+ });
+
+ const order = {
+ summary: "Buy me!",
+ amount: "TESTKUDOS:5",
+ fulfillment_url: "taler://fulfillment-success/thx",
+ minimum_age: 9,
+ };
+
+ await makeTestPayment(t, { wallet: walletZero, merchant, order });
+ await walletZero.runUntilDone();
+ }
+
+ {
const wallet = walletOne;
await withdrawViaBank(t, {