From a6c8b0cd619df5bc8b9e629be998629502b7ee2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Vitor=20de=20Lima=20Matos?= Date: Mon, 20 Sep 2021 20:09:11 -0300 Subject: [PATCH] cli: adapt --gas-price help string for new behavior --- raiden-cli/src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/raiden-cli/src/index.ts b/raiden-cli/src/index.ts index 9b62c1f233..250bcb8b29 100644 --- a/raiden-cli/src/index.ts +++ b/raiden-cli/src/index.ts @@ -181,7 +181,7 @@ async function parseArguments() { desc: 'Enables capping mediation fees to not allow them to be negative (output transfers amount always less than or equal input transfers)', }, gasPrice: { - desc: 'Set gasPrice strategy for transactions, as a multiplier of ETH node returned "eth_gasPrice"; some aliases: medium=1.05, fast=1.2, rapid=1.5', + desc: "Set gasPrice factor for transactions's priority fees, as a multiplier of default `maxPriorityFeePerGas` (2.5 Gwei); some aliases: medium=1.05, fast=1.2, rapid=1.5", coerce(val?: string | string[]): number | undefined { if (!val) return; if (Array.isArray(val)) val = val[val.length - 1]; @@ -195,7 +195,7 @@ async function parseArguments() { return 1.5; default: value = +val; - assert(value && 0.1 <= value && value <= 10, 'invalid gasPrice'); + assert(value && value > 0, 'invalid gasPrice'); return value; } },