-fix test setup

This commit is contained in:
Florian Dold 2022-09-05 22:33:51 +02:00
parent 4240e1b767
commit 03b2e064c2
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -124,7 +124,11 @@ export async function createSimpleTestkudosEnvironment(
exchange.enableAgeRestrictions(ageMaskSpec);
// Enable age restriction for all coins.
exchange.addCoinConfigList(
coinConfig.map((x) => ({ ...x, ageRestricted: true })),
coinConfig.map((x) => ({
...x,
name: `${x.name}-age`,
ageRestricted: true,
})),
);
// For mixed age restrictions, we also offer coins without age restrictions
if (opts.mixedAgeRestriction) {