diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-08-14 13:06:42 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-08-14 13:06:42 +0530 |
commit | e3850158c249d890399fdb9e083ec7e654a8380f (patch) | |
tree | 3226a8cb652e38d8c9290914b7c30f8b8ac9345b /packages/taler-wallet-cli/src | |
parent | d5f894690ee554909c1f8b1b8179fa110784dc4f (diff) | |
download | wallet-core-e3850158c249d890399fdb9e083ec7e654a8380f.tar.xz |
re-implement integration test functionalty that will be used by the exchange for testing
Diffstat (limited to 'packages/taler-wallet-cli/src')
-rw-r--r-- | packages/taler-wallet-cli/src/index.ts | 8 |
1 files changed, 3 insertions, 5 deletions
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, |