aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/operations/deposits.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2022-10-14 22:47:11 +0200
committerFlorian Dold <florian@dold.me>2022-10-14 22:47:11 +0200
commit0c8e56c32457ea9b9229a8a3607fcf8e7618bc17 (patch)
treed0b4bbe4e199d62426e722b803fdfa178cd6f3a0 /packages/taler-wallet-core/src/operations/deposits.ts
parenteec6695be0409669fcad36c6cc7ea01f48d41c97 (diff)
downloadwallet-core-0c8e56c32457ea9b9229a8a3607fcf8e7618bc17.tar.xz
wallet-core: properly separate different types of IDs
Diffstat (limited to 'packages/taler-wallet-core/src/operations/deposits.ts')
-rw-r--r--packages/taler-wallet-core/src/operations/deposits.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/taler-wallet-core/src/operations/deposits.ts b/packages/taler-wallet-core/src/operations/deposits.ts
index 1f7d05d29..7e87dafb8 100644
--- a/packages/taler-wallet-core/src/operations/deposits.ts
+++ b/packages/taler-wallet-core/src/operations/deposits.ts
@@ -53,7 +53,7 @@ import {
import { InternalWalletState } from "../internal-wallet-state.js";
import { readSuccessResponseJsonOrThrow } from "../util/http.js";
import { OperationAttemptResult } from "../util/retries.js";
-import { makeEventId, spendCoins } from "./common.js";
+import { makeTransactionId, spendCoins } from "./common.js";
import { getExchangeDetails } from "./exchanges.js";
import {
extractContractData,
@@ -495,7 +495,7 @@ export async function createDepositGroup(
])
.runReadWrite(async (tx) => {
await spendCoins(ws, tx, {
- allocationId: `deposit-group:${depositGroup.depositGroupId}`,
+ allocationId: `txn:deposit:${depositGroup.depositGroupId}`,
coinPubs: payCoinSel.coinPubs,
contributions: payCoinSel.coinContributions,
refreshReason: RefreshReason.PayDeposit,
@@ -505,7 +505,7 @@ export async function createDepositGroup(
return {
depositGroupId: depositGroupId,
- transactionId: makeEventId(TransactionType.Deposit, depositGroupId),
+ transactionId: makeTransactionId(TransactionType.Deposit, depositGroupId),
};
}