diff options
Diffstat (limited to 'src/headless/taler-wallet-cli.ts')
-rw-r--r-- | src/headless/taler-wallet-cli.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/headless/taler-wallet-cli.ts b/src/headless/taler-wallet-cli.ts index ed6146a6b..ba629537e 100644 --- a/src/headless/taler-wallet-cli.ts +++ b/src/headless/taler-wallet-cli.ts @@ -60,7 +60,7 @@ async function doPay( ): Promise<void> { const result = await wallet.preparePayForUri(payUrl); if (result.status === PreparePayResultType.InsufficientBalance) { - console.log("contract", result.contractTermsRaw); + console.log("contract", result.contractTerms); console.error("insufficient balance"); process.exit(1); return; @@ -80,8 +80,9 @@ async function doPay( } else { throw Error("not reached"); } - console.log("contract", result.contractTermsRaw); - console.log("total fees:", Amounts.stringify(result.totalFees)); + console.log("contract", result.contractTerms); + console.log("raw amount:", result.amountRaw); + console.log("effective amount:", result.amountEffective); let pay; if (options.alwaysYes) { pay = true; |