[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: linting
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: linting |
Date: |
Wed, 04 Aug 2021 18:14:43 +0200 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-core.
The following commit(s) were added to refs/heads/master by this push:
new 20611fe6 linting
20611fe6 is described below
commit 20611fe6e01657d79b2436a25212a6cfc83d4850
Author: Florian Dold <florian@dold.me>
AuthorDate: Wed Aug 4 18:14:37 2021 +0200
linting
---
packages/taler-wallet-cli/src/index.ts | 4 ++--
packages/taler-wallet-cli/src/lint.ts | 13 ++++++++-----
2 files changed, 10 insertions(+), 7 deletions(-)
diff --git a/packages/taler-wallet-cli/src/index.ts
b/packages/taler-wallet-cli/src/index.ts
index f21e98f0..3afbc87e 100644
--- a/packages/taler-wallet-cli/src/index.ts
+++ b/packages/taler-wallet-cli/src/index.ts
@@ -897,13 +897,13 @@ deploymentCli
out += "\n";
while (Amounts.cmp(x, max) < 0) {
- out += `[COIN_${currency}_${n}]\n`;
+ out += `[COIN-${currency}_${n}]\n`;
out += `VALUE = ${Amounts.stringify(x)}\n`;
out += `DURATION_WITHDRAW = 7 days\n`;
out += `DURATION_SPEND = 2 years\n`;
out += `DURATION_LEGAL = 6 years\n`;
out += `FEE_WITHDRAW = ${currency}:0\n`;
- out += `FEE_DEPOSIT = ${currency}:0\n`;
+ out += `FEE_DEPOSIT = ${Amounts.stringify(min)}\n`;
out += `FEE_REFRESH = ${currency}:0\n`;
out += `FEE_REFUND = ${currency}:0\n`;
out += `RSA_KEYSIZE = 2048\n`;
diff --git a/packages/taler-wallet-cli/src/lint.ts
b/packages/taler-wallet-cli/src/lint.ts
index 4913d2ab..4f6b4d60 100644
--- a/packages/taler-wallet-cli/src/lint.ts
+++ b/packages/taler-wallet-cli/src/lint.ts
@@ -138,9 +138,11 @@ function checkCoinConfig(cfg: Configuration, basic:
BasicConf): void {
// FIXME: check that section is well-formed
}
- console.log(
- "error: no coin denomination configured, please configure [coin_*]
sections",
- );
+ if (numCoins == 0) {
+ console.log(
+ "error: no coin denomination configured, please configure [coin-*]
sections",
+ );
+ }
}
function checkWireConfig(cfg: Configuration): void {
@@ -231,7 +233,6 @@ export async function checkExchangeHttpd(
console.log(
"warning: section EXCHANGE option BASE_URL: it is recommended to serve
the exchange via HTTPS",
);
- process.exit(1);
}
{
@@ -265,7 +266,9 @@ export async function checkExchangeHttpd(
);
if (keys.master_public_key !== pubConf.masterPublicKey) {
- console.log("error: master public key of exchange does not match public
key of live exchange");
+ console.log(
+ "error: master public key of exchange does not match public key of
live exchange",
+ );
}
}
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-wallet-core] branch master updated: linting, gnunet, 2021/08/04
- [taler-wallet-core] branch master updated: linting, gnunet, 2021/08/04
- [taler-wallet-core] branch master updated: linting,
gnunet <=
- [taler-wallet-core] branch master updated: linting, gnunet, 2021/08/04
- [taler-wallet-core] branch master updated: linting, gnunet, 2021/08/04
- [taler-wallet-core] branch master updated: linting, gnunet, 2021/08/04
- [taler-wallet-core] branch master updated: linting, gnunet, 2021/08/04
- [taler-wallet-core] branch master updated: linting, gnunet, 2021/08/04