diff options
author | Florian Dold <florian@dold.me> | 2024-02-22 11:33:32 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-02-27 14:58:36 +0100 |
commit | 2ab4ad686380b3cfe5c5245312e42af8a69c01f6 (patch) | |
tree | e82af5ea7defbc4bdd7b468f714212041914dc59 /packages/taler-wallet-core/src/common.ts | |
parent | 41f34031ae934e8c802cdbb73fffb5a39c9c6a68 (diff) | |
download | wallet-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.ts | 4 |
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, |