From e1369ff7e8fc02116b9c4261036f0e42e3423cf4 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 2 Dec 2019 00:42:40 +0100 Subject: the giant refactoring: split wallet into multiple parts --- src/headless/taler-wallet-cli.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/headless/taler-wallet-cli.ts') diff --git a/src/headless/taler-wallet-cli.ts b/src/headless/taler-wallet-cli.ts index cb2ff055c..9598b9d98 100644 --- a/src/headless/taler-wallet-cli.ts +++ b/src/headless/taler-wallet-cli.ts @@ -23,8 +23,8 @@ import { Wallet, OperationFailedAndReportedError } from "../wallet"; import qrcodeGenerator = require("qrcode-generator"); import * as clk from "./clk"; import { BridgeIDBFactory, MemoryBackend } from "idb-bridge"; -import { Logger } from "../logging"; -import * as Amounts from "../amounts"; +import { Logger } from "../util/logging"; +import * as Amounts from "../util/amounts"; import { decodeCrock } from "../crypto/talerCrypto"; import { Bank } from "./bank"; @@ -93,7 +93,6 @@ async function doPay( function applyVerbose(verbose: boolean) { if (verbose) { console.log("enabled verbose logging"); - Wallet.enableTracing = true; BridgeIDBFactory.enableTracing = true; } } @@ -217,7 +216,7 @@ walletCli } else if (uri.startsWith("taler://tip/")) { const res = await wallet.getTipStatus(uri); console.log("tip status", res); - await wallet.acceptTip(uri); + await wallet.acceptTip(res.tipId); } else if (uri.startsWith("taler://refund/")) { await wallet.applyRefund(uri); } else if (uri.startsWith("taler://withdraw/")) { -- cgit v1.2.3