Merge PR #2886: Don't get command through client.{Get,Post}Commands()
* Don't get command through client.{Get,Post}Commands() Logic has changed recently and commands are now enriched with flags by default. Closes: #2884
This commit is contained in:
commit
c21961b21d
|
@ -94,6 +94,7 @@ BUG FIXES
|
||||||
|
|
||||||
- \#2733 [x/gov, x/mock/simulation] Fix governance simulation, update x/gov import/export
|
- \#2733 [x/gov, x/mock/simulation] Fix governance simulation, update x/gov import/export
|
||||||
- \#2854 [x/bank] Remove unused bank.MsgIssue, prevent possible panic
|
- \#2854 [x/bank] Remove unused bank.MsgIssue, prevent possible panic
|
||||||
|
- \#2884 [docs/examples] Fix `basecli version` panic
|
||||||
|
|
||||||
* Tendermint
|
* Tendermint
|
||||||
* [\#2797](https://github.com/tendermint/tendermint/pull/2797) AddressBook requires addresses to have IDs; Do not crap out immediately after sending pex addrs in seed mode
|
* [\#2797](https://github.com/tendermint/tendermint/pull/2797) AddressBook requires addresses to have IDs; Do not crap out immediately after sending pex addrs in seed mode
|
||||||
|
|
|
@ -72,7 +72,6 @@ func main() {
|
||||||
|
|
||||||
// add query/post commands (custom to binary)
|
// add query/post commands (custom to binary)
|
||||||
rootCmd.AddCommand(
|
rootCmd.AddCommand(
|
||||||
client.GetCommands(
|
|
||||||
stakecmd.GetCmdQueryValidator(storeStake, cdc),
|
stakecmd.GetCmdQueryValidator(storeStake, cdc),
|
||||||
stakecmd.GetCmdQueryValidators(storeStake, cdc),
|
stakecmd.GetCmdQueryValidators(storeStake, cdc),
|
||||||
stakecmd.GetCmdQueryValidatorUnbondingDelegations(storeStake, cdc),
|
stakecmd.GetCmdQueryValidatorUnbondingDelegations(storeStake, cdc),
|
||||||
|
@ -86,11 +85,11 @@ func main() {
|
||||||
stakecmd.GetCmdQueryRedelegation(storeStake, cdc),
|
stakecmd.GetCmdQueryRedelegation(storeStake, cdc),
|
||||||
stakecmd.GetCmdQueryRedelegations(storeStake, cdc),
|
stakecmd.GetCmdQueryRedelegations(storeStake, cdc),
|
||||||
slashingcmd.GetCmdQuerySigningInfo(storeSlashing, cdc),
|
slashingcmd.GetCmdQuerySigningInfo(storeSlashing, cdc),
|
||||||
|
stakecmd.GetCmdQueryValidatorDelegations(storeStake, cdc),
|
||||||
authcmd.GetAccountCmd(storeAcc, cdc),
|
authcmd.GetAccountCmd(storeAcc, cdc),
|
||||||
)...)
|
)
|
||||||
|
|
||||||
rootCmd.AddCommand(
|
rootCmd.AddCommand(
|
||||||
client.PostCommands(
|
|
||||||
bankcmd.SendTxCmd(cdc),
|
bankcmd.SendTxCmd(cdc),
|
||||||
ibccmd.IBCTransferCmd(cdc),
|
ibccmd.IBCTransferCmd(cdc),
|
||||||
ibccmd.IBCRelayCmd(cdc),
|
ibccmd.IBCRelayCmd(cdc),
|
||||||
|
@ -100,7 +99,7 @@ func main() {
|
||||||
stakecmd.GetCmdUnbond(storeStake, cdc),
|
stakecmd.GetCmdUnbond(storeStake, cdc),
|
||||||
stakecmd.GetCmdRedelegate(storeStake, cdc),
|
stakecmd.GetCmdRedelegate(storeStake, cdc),
|
||||||
slashingcmd.GetCmdUnjail(cdc),
|
slashingcmd.GetCmdUnjail(cdc),
|
||||||
)...)
|
)
|
||||||
|
|
||||||
// add proxy, version and key info
|
// add proxy, version and key info
|
||||||
rootCmd.AddCommand(
|
rootCmd.AddCommand(
|
||||||
|
|
|
@ -70,13 +70,11 @@ func main() {
|
||||||
// add query/post commands (custom to binary)
|
// add query/post commands (custom to binary)
|
||||||
// start with commands common to basecoin
|
// start with commands common to basecoin
|
||||||
rootCmd.AddCommand(
|
rootCmd.AddCommand(
|
||||||
client.GetCommands(
|
|
||||||
authcmd.GetAccountCmd(storeAcc, cdc),
|
authcmd.GetAccountCmd(storeAcc, cdc),
|
||||||
)...)
|
)
|
||||||
rootCmd.AddCommand(
|
rootCmd.AddCommand(
|
||||||
client.PostCommands(
|
|
||||||
bankcmd.SendTxCmd(cdc),
|
bankcmd.SendTxCmd(cdc),
|
||||||
)...)
|
)
|
||||||
rootCmd.AddCommand(
|
rootCmd.AddCommand(
|
||||||
client.PostCommands(
|
client.PostCommands(
|
||||||
simplestakingcmd.BondTxCmd(cdc),
|
simplestakingcmd.BondTxCmd(cdc),
|
||||||
|
|
Loading…
Reference in New Issue