Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix!: force genOrBroadcastFn even when
max-msgs != 0
If cli tx withdraw-all-rewards sends empty tx, the tx would be rejected by validators because it has no msgs. However, the cli sends empty tx only if one sets `--max-msgs=0` which means it does not split the msgs. When you set `max-msgs` with any positive number, the cli does not send any tx, which may confuse you because you cannot get the feedback indicating the address has no delegations. This patch addresses the problem, by forcing genOrBroadcastFn when the number of total msgs generated is zero. It will provide the same user experience with any `max-msgs`.
- Loading branch information