Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: upgrade to v0.45.7 #11

Merged
merged 21 commits into from
Aug 25, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
6dc53e0
Update tag.yml
alexanderbez Jun 9, 2022
63d768c
fix: update index of crisis invariant check logs (backport #12208) (#…
mergify[bot] Jun 10, 2022
aeab66a
fix: Refactor GetLastCompletedUpgrade [v0.45.x] (#12264)
alexanderbez Jun 15, 2022
bf7348e
fix: defaultGenTxGas to 10 times (#12314)
hea9549 Jun 21, 2022
cece44d
fix: edit validator bug from cli (#12317)
likhita-809 Jun 21, 2022
dced7ec
chore: update release notes (#12377)
julienrbrt Jun 28, 2022
f2d9444
feat: add query.GenericFilteredPaginated (backport #12253) (#12371)
mergify[bot] Jun 28, 2022
7e727e8
fix: update x/mint parameter validation (backport #12384) (#12396)
mergify[bot] Jun 30, 2022
a99988f
chore: optimize get last completed upgrade (#12268)
robert-zaremba Jul 3, 2022
5e40a14
fix: Simulation is not deterministic due to GenTx (backport #12374) (…
adu-web3 Jul 4, 2022
10961d0
fix: use go install instead of go get in makefile (#12435)
julienrbrt Jul 4, 2022
0e166fa
chore: fumpt sdk v45 series #12442
faddat Jul 5, 2022
155d9ec
feat: Move AppModule.BeginBlock and AppModule.EndBlock to extension i…
mergify[bot] Jul 19, 2022
4eec00f
feat: add message index event attribute to authz message execution (b…
mergify[bot] Jul 22, 2022
1fcc404
chore(store): upgrade iavl to v0.19.0 (backport #12626) (#12697)
mergify[bot] Jul 23, 2022
eb032e3
feat: Add `GetParamSetIfExists` to prevent panic on breaking param ch…
fedekunze Jul 26, 2022
3ae6bb4
feat: Add convenience method for constructing key to access account's…
mergify[bot] Aug 2, 2022
e23386b
chore: bump tm in 0.45.x (#12784)
tac0turtle Aug 4, 2022
35ae2c4
chore: 0.45.7 changelog prep (#12821)
tac0turtle Aug 4, 2022
ec6e5e2
chore: upgrade to `v0.45.7`
johnletey Aug 24, 2022
a6f4dba
chore: migrate from registry to delegation keeper
johnletey Aug 24, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: edit validator bug from cli (cosmos#12317)
  • Loading branch information
likhita-809 authored Jun 21, 2022
commit cece44df7b613e48587e9c77d897417668b91b25
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ Ref: https://keepachangelog.com/en/1.0.0/

### Bug Fixes

* [\#12317](https://github.com/cosmos/cosmos-sdk/pull/12317) Rename `edit-validator` command's `--moniker` flag to `--new-moniker`
* (x/upgrade) [#12264](https://github.com/cosmos/cosmos-sdk/pull/12264) Fix `GetLastCompleteUpgrade` to properly return the latest upgrade.
* (x/crisis) [#12208](https://github.com/cosmos/cosmos-sdk/pull/12208) Fix progress index of crisis invariant assertion logs.

Expand Down
3 changes: 2 additions & 1 deletion x/staking/client/cli/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const (
FlagSharesFraction = "shares-fraction"

FlagMoniker = "moniker"
FlagEditMoniker = "new-moniker"
FlagIdentity = "identity"
FlagWebsite = "website"
FlagSecurityContact = "security-contact"
Expand Down Expand Up @@ -82,7 +83,7 @@ func FlagSetPublicKey() *flag.FlagSet {
func flagSetDescriptionEdit() *flag.FlagSet {
fs := flag.NewFlagSet("", flag.ContinueOnError)

fs.String(FlagMoniker, types.DoNotModifyDesc, "The validator's name")
fs.String(FlagEditMoniker, types.DoNotModifyDesc, "The validator's name")
fs.String(FlagIdentity, types.DoNotModifyDesc, "The (optional) identity signature (ex. UPort or Keybase)")
fs.String(FlagWebsite, types.DoNotModifyDesc, "The validator's (optional) website")
fs.String(FlagSecurityContact, types.DoNotModifyDesc, "The validator's (optional) security contact email")
Expand Down
2 changes: 1 addition & 1 deletion x/staking/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func NewEditValidatorCmd() *cobra.Command {
return err
}
valAddr := clientCtx.GetFromAddress()
moniker, _ := cmd.Flags().GetString(FlagMoniker)
moniker, _ := cmd.Flags().GetString(FlagEditMoniker)
identity, _ := cmd.Flags().GetString(FlagIdentity)
website, _ := cmd.Flags().GetString(FlagWebsite)
security, _ := cmd.Flags().GetString(FlagSecurityContact)
Expand Down
1 change: 1 addition & 0 deletions x/staking/client/testutil/cli_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build norace
// +build norace

package testutil
Expand Down
48 changes: 48 additions & 0 deletions x/staking/client/testutil/suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -1353,3 +1353,51 @@ func (s *IntegrationTestSuite) TestBlockResults() {
s.network.WaitForNextBlock()
}
}

// https://github.com/cosmos/cosmos-sdk/issues/10660
func (s *IntegrationTestSuite) TestEditValidatorMoniker() {
val := s.network.Validators[0]
require := s.Require()

txCmd := cli.NewEditValidatorCmd()
moniker := "testing"
_, err := clitestutil.ExecTestCLICmd(val.ClientCtx, txCmd, []string{
val.ValAddress.String(),
fmt.Sprintf("--%s=%s", flags.FlagFrom, val.Address.String()),
fmt.Sprintf("--%s=true", flags.FlagSkipConfirmation),
fmt.Sprintf("--%s=%s", flags.FlagBroadcastMode, flags.BroadcastBlock),
fmt.Sprintf("--%s=%s", cli.FlagEditMoniker, moniker),
fmt.Sprintf("--%s=https://newvalidator.io", cli.FlagWebsite),
fmt.Sprintf("--%s=%s", flags.FlagFees, sdk.NewCoins(sdk.NewCoin(s.cfg.BondDenom, sdk.NewInt(10))).String()),
})
require.NoError(err)

queryCmd := cli.GetCmdQueryValidator()
res, err := clitestutil.ExecTestCLICmd(
val.ClientCtx, queryCmd,
[]string{val.ValAddress.String(), fmt.Sprintf("--%s=json", tmcli.OutputFlag)},
)
require.NoError(err)
var result types.Validator
require.NoError(val.ClientCtx.Codec.UnmarshalJSON(res.Bytes(), &result))
require.Equal(result.GetMoniker(), moniker)

_, err = clitestutil.ExecTestCLICmd(val.ClientCtx, txCmd, []string{
val.ValAddress.String(),
fmt.Sprintf("--%s=%s", flags.FlagFrom, val.Address.String()),
fmt.Sprintf("--%s=true", flags.FlagSkipConfirmation),
fmt.Sprintf("--%s=%s", flags.FlagBroadcastMode, flags.BroadcastBlock),
fmt.Sprintf("--%s=https://newvalidator.io", cli.FlagWebsite),
fmt.Sprintf("--%s=%s", flags.FlagFees, sdk.NewCoins(sdk.NewCoin(s.cfg.BondDenom, sdk.NewInt(10))).String()),
})
require.NoError(err)

res, err = clitestutil.ExecTestCLICmd(
val.ClientCtx, queryCmd,
[]string{val.ValAddress.String(), fmt.Sprintf("--%s=json", tmcli.OutputFlag)},
)
require.NoError(err)

require.NoError(val.ClientCtx.Codec.UnmarshalJSON(res.Bytes(), &result))
require.Equal(result.GetMoniker(), moniker)
}