diff options
author | Florian Dold <florian@dold.me> | 2024-04-23 03:09:40 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-04-23 03:09:40 +0200 |
commit | 1edc144b3595ae1ab6b8af7a43d26b811b2c2623 (patch) | |
tree | db552f6b4a351eb1d0dae902f4d504031852bda7 /packages/taler-wallet-core/src/testing.ts | |
parent | 4b69853c347071acb73efcde9d4969cf06d0dfcc (diff) | |
download | wallet-core-1edc144b3595ae1ab6b8af7a43d26b811b2c2623.tar.xz |
wallet-core: pass options object to all transactions
Diffstat (limited to 'packages/taler-wallet-core/src/testing.ts')
-rw-r--r-- | packages/taler-wallet-core/src/testing.ts | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/packages/taler-wallet-core/src/testing.ts b/packages/taler-wallet-core/src/testing.ts index 2f149cfa8..899c4a8b2 100644 --- a/packages/taler-wallet-core/src/testing.ts +++ b/packages/taler-wallet-core/src/testing.ts @@ -858,9 +858,12 @@ export async function testPay( if (r.type != ConfirmPayResultType.Done) { throw Error("payment not done"); } - const purchase = await wex.db.runReadOnlyTx(["purchases"], async (tx) => { - return tx.purchases.get(result.proposalId); - }); + const purchase = await wex.db.runReadOnlyTx( + { storeNames: ["purchases"] }, + async (tx) => { + return tx.purchases.get(result.proposalId); + }, + ); checkLogicInvariant(!!purchase); return { numCoins: purchase.payInfo?.payCoinSelection?.coinContributions.length ?? 0, |