Commit 6fdbfdd
feat(pcli): support lqt votes by subaccount (#5244)
## Describe your changes
Previously the `pcli tx lqt-vote` command only inspected subaccount 0
when searching for delegation notes to use in voting. If a user stores
their delegations in a different subaccounts, it wasn't possible to vote
with them. Here we allow a user to opt in to voting in the LQT via a
specific subaccount, provided as `--source n`, the same CLI used for
`pcli tx send`.
## Issue ticket number and link
n/a
## Testing and review
Visual review of the diff should be sufficient, as the logic is
straightforward.
## Checklist before requesting a review
- [x] I have added guiding text to explain how a reviewer should test
these changes.
- [x] If this code contains consensus-breaking changes, I have added the
"consensus-breaking" label. Otherwise, I declare my belief that there
are not consensus-breaking changes, for the following reason:
> only changes client-side tooling, no changes to app consensus logic
---------
Signed-off-by: Lúcás Meier <cronokirby@gmail.com>
Co-authored-by: Lúcás Meier <lucas@cronokirby.com>1 parent 762286a commit 6fdbfdd
File tree
2 files changed
+28
-12
lines changed- crates
- bin/pcli/src/command/tx
- view/src
2 files changed
+28
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
| |||
79 | 82 | | |
80 | 83 | | |
81 | 84 | | |
82 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
83 | 96 | | |
84 | 97 | | |
85 | 98 | | |
| |||
106 | 119 | | |
107 | 120 | | |
108 | 121 | | |
109 | | - | |
| 122 | + | |
110 | 123 | | |
111 | 124 | | |
112 | 125 | | |
113 | | - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
114 | 129 | | |
115 | 130 | | |
116 | 131 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
988 | 988 | | |
989 | 989 | | |
990 | 990 | | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
991 | 995 | | |
992 | 996 | | |
993 | 997 | | |
994 | 998 | | |
995 | 999 | | |
996 | | - | |
997 | | - | |
998 | | - | |
999 | | - | |
1000 | | - | |
1001 | | - | |
1002 | 1000 | | |
1003 | 1001 | | |
1004 | 1002 | | |
| |||
1021 | 1019 | | |
1022 | 1020 | | |
1023 | 1021 | | |
1024 | | - | |
1025 | | - | |
| 1022 | + | |
1026 | 1023 | | |
1027 | 1024 | | |
1028 | 1025 | | |
| |||
1036 | 1033 | | |
1037 | 1034 | | |
1038 | 1035 | | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
1039 | 1040 | | |
1040 | 1041 | | |
1041 | 1042 | | |
| |||
0 commit comments