livepeer_cli: Prompt for rewardCut/feeShare shows a default value but pressing enter uses the current value
#1.836 aberto em 9 de abr. de 2021
Métricas do repositório
- Stars
- (583 estrelas)
- Métricas de merge de PR
- (Métricas PR pendentes)
Description
It is reasonable to assume that if a default value is shown in the prompt that that would be the value used if no value is explicitly provided. However, this is not the current behavior - the current behavior is to use the current value if no value is specified even though the prompt indicates a default.
The fix here should be to line up the behavior when no value is specified with what a user would expect to avoid the scenario where the user provides no value expecting to use the default only to set the rewardCut + feeShare to 0 (the current uninitialized values) [1]. How to accomplish this is left TBD for the implementer.
[1] At least one user reported that this happened to them.