diff options
author | Florian Dold <florian@dold.me> | 2022-11-02 19:05:06 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-11-02 19:05:06 +0100 |
commit | cc2122b50c7d8d0402c5c75228f4c1a241eaf4e0 (patch) | |
tree | bca8c94e7574f6fc140e5935cbba9e473f81f3f3 /packages/taler-wallet-core/src/operations/common.ts | |
parent | 566248aec417f6653e6245b96312f187517f0cdd (diff) | |
download | wallet-core-cc2122b50c7d8d0402c5c75228f4c1a241eaf4e0.tar.xz |
wallet-core: fix coin allocation when doing refresh
Diffstat (limited to 'packages/taler-wallet-core/src/operations/common.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/common.ts | 2 |
1 files changed, 2 insertions, 0 deletions
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)) { |