taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 2b8ae6381776b0d6fc9cc8c0b8275fbdc6d3295b
parent f9f109b08b3af89081521bc6b60b9cdc0034450a
Author: Florian Dold <florian@dold.me>
Date:   Tue, 23 Apr 2024 15:49:50 +0200

-embedded

Diffstat:
Mpackages/taler-wallet-embedded/src/wallet-qjs.ts | 16++++++----------
1 file changed, 6 insertions(+), 10 deletions(-)

diff --git a/packages/taler-wallet-embedded/src/wallet-qjs.ts b/packages/taler-wallet-embedded/src/wallet-qjs.ts @@ -98,13 +98,9 @@ class NativeWalletMessageHandler { const wR = await createNativeWalletHost2(this.walletArgs); const w = wR.wallet; this.maybeWallet = w; - const resp = await w.handleCoreApiRequest( - "initWallet", - "native-init", - { - config: this.walletConfig - }, - ); + const resp = await w.handleCoreApiRequest("initWallet", "native-init", { + config: this.walletConfig, + }); initResponse = resp.type == "response" ? resp.result : resp.error; this.wp.resolve(w); }; @@ -292,7 +288,7 @@ export async function testWithGv() { merchantAuthToken: "secret-token:sandbox", }); await w.wallet.client.call(WalletApiOperation.TestingWaitTasksDone, {}); - w.wallet.stop(); + await w.wallet.client.call(WalletApiOperation.Shutdown, {}); } export async function testWithFdold() { @@ -312,7 +308,7 @@ export async function testWithFdold() { merchantBaseUrl: "https://merchant.taler.fdold.eu/", }); await w.wallet.client.call(WalletApiOperation.TestingWaitTasksDone, {}); - w.wallet.stop(); + await w.wallet.client.call(WalletApiOperation.Shutdown, {}); } export async function testWithLocal(path: string) { @@ -342,7 +338,7 @@ export async function testWithLocal(path: string) { console.log("started integration test"); await w.wallet.client.call(WalletApiOperation.TestingWaitTasksDone, {}); console.log("done with task loop"); - w.wallet.stop(); + await w.wallet.client.call(WalletApiOperation.Shutdown, {}); console.log("DB stats:", j2s(w.getDbStats())); }