From cc2122b50c7d8d0402c5c75228f4c1a241eaf4e0 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 2 Nov 2022 19:05:06 +0100 Subject: wallet-core: fix coin allocation when doing refresh --- packages/taler-wallet-core/src/operations/common.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'packages/taler-wallet-core/src/operations/common.ts') diff --git a/packages/taler-wallet-core/src/operations/common.ts b/packages/taler-wallet-core/src/operations/common.ts index 73d1ee4b0..2323cb82c 100644 --- a/packages/taler-wallet-core/src/operations/common.ts +++ b/packages/taler-wallet-core/src/operations/common.ts @@ -142,6 +142,8 @@ export async function spendCoins( } if (alloc.id !== csi.allocationId) { // FIXME: assign error code + logger.info("conflicting coin allocation ID"); + logger.info(`old ID: ${alloc.id}, new ID: ${csi.allocationId}`); throw Error("conflicting coin allocation (id)"); } if (0 !== Amounts.cmp(alloc.amount, contrib)) { -- cgit v1.2.3