diff options
Diffstat (limited to 'packages/taler-wallet-cli/src/harness/helpers.ts')
-rw-r--r-- | packages/taler-wallet-cli/src/harness/helpers.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/taler-wallet-cli/src/harness/helpers.ts b/packages/taler-wallet-cli/src/harness/helpers.ts index db66efbb6..08c865ec1 100644 --- a/packages/taler-wallet-cli/src/harness/helpers.ts +++ b/packages/taler-wallet-cli/src/harness/helpers.ts @@ -70,6 +70,8 @@ export interface EnvOptions { * If provided, enable age restrictions with the specified age mask string. */ ageMaskSpec?: string; + + mixedAgeRestriction?: boolean; } /** @@ -124,6 +126,12 @@ export async function createSimpleTestkudosEnvironment( exchange.addCoinConfigList( coinConfig.map((x) => ({ ...x, ageRestricted: true })), ); + // For mixed age restrictions, we also offer coins without age restrictions + if (opts.mixedAgeRestriction) { + exchange.addCoinConfigList( + coinConfig.map((x) => ({ ...x, ageRestricted: false })), + ); + } } else { exchange.addCoinConfigList(coinConfig); } |