Skip to content

Commit

Permalink
cli: adapt --gas-price help string for new behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
andrevmatos committed Sep 21, 2021
1 parent 7b068d5 commit a6c8b0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions raiden-cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand All @@ -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;
}
},
Expand Down

0 comments on commit a6c8b0c

Please sign in to comment.