summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/common.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2024-02-22 11:33:32 +0100
committerFlorian Dold <florian@dold.me>2024-02-27 14:58:36 +0100
commit2ab4ad686380b3cfe5c5245312e42af8a69c01f6 (patch)
treee82af5ea7defbc4bdd7b468f714212041914dc59 /packages/taler-wallet-core/src/common.ts
parent41f34031ae934e8c802cdbb73fffb5a39c9c6a68 (diff)
downloadwallet-core-2ab4ad686380b3cfe5c5245312e42af8a69c01f6.tar.gz
wallet-core-2ab4ad686380b3cfe5c5245312e42af8a69c01f6.tar.bz2
wallet-core-2ab4ad686380b3cfe5c5245312e42af8a69c01f6.zip
move operation out of ws
Diffstat (limited to 'packages/taler-wallet-core/src/common.ts')
-rw-r--r--packages/taler-wallet-core/src/common.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/taler-wallet-core/src/common.ts b/packages/taler-wallet-core/src/common.ts
index 8c6650f4a..08adb2515 100644
--- a/packages/taler-wallet-core/src/common.ts
+++ b/packages/taler-wallet-core/src/common.ts
@@ -61,7 +61,7 @@ import {
timestampPreciseToDb,
} from "./db.js";
import { createRefreshGroup } from "./refresh.js";
-import { InternalWalletState } from "./wallet.js";
+import { InternalWalletState, getDenomInfo } from "./wallet.js";
const logger = new Logger("operations/common.ts");
@@ -161,7 +161,7 @@ export async function spendCoins(
if (!coin) {
throw Error("coin allocated for payment doesn't exist anymore");
}
- const denom = await ws.getDenomInfo(
+ const denom = await getDenomInfo(
ws,
tx,
coin.exchangeBaseUrl,