From e3850158c249d890399fdb9e083ec7e654a8380f Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 14 Aug 2020 13:06:42 +0530 Subject: re-implement integration test functionalty that will be used by the exchange for testing --- packages/taler-wallet-cli/src/index.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'packages/taler-wallet-cli/src/index.ts') diff --git a/packages/taler-wallet-cli/src/index.ts b/packages/taler-wallet-cli/src/index.ts index a32ed2267..94f01ba80 100644 --- a/packages/taler-wallet-cli/src/index.ts +++ b/packages/taler-wallet-cli/src/index.ts @@ -26,7 +26,6 @@ import { NodeHttpLib, PreparePayResultType, setDangerousTimetravel, - handleCoreApiRequest, classifyTalerUri, TalerUriType, decodeCrock, @@ -34,10 +33,10 @@ import { codecForList, codecForString, printTestVectors, + NodeThreadCryptoWorkerFactory, + CryptoApi, } from "taler-wallet-core"; import * as clk from "./clk"; -import { NodeThreadCryptoWorkerFactory } from "taler-wallet-core/lib/crypto/workers/nodeThreadWorker"; -import { CryptoApi } from "taler-wallet-core/lib/crypto/workers/cryptoApi"; // This module also serves as the entry point for the crypto // thread worker, and thus must expose these two handlers. @@ -210,8 +209,7 @@ walletCli console.error("Invalid JSON"); process.exit(1); } - const resp = await handleCoreApiRequest( - wallet, + const resp = await wallet.handleCoreApiRequest( args.api.operation, "reqid-1", requestJson, -- cgit v1.2.3