Add consensus params into Simulation (#6002)
* temporal commit * add random consensus params * make format * make random pass * remove comment * revert change * update ub key types * extract Evidence params from state * extract the random parameters from state * clean the code * update imports! * mispelled back * mispelled back * add misspelled command * update changelog * remove useless linter to avoid misspell * remove function * use tendermint constants Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
This commit is contained in:
co-authored by
Alexander Bezobchuk
parent
71c62a432f
commit
65048683b5
+4
-4
@@ -37,12 +37,12 @@ func TestValidateCmd(t *testing.T) {
|
||||
args []string
|
||||
wantErr bool
|
||||
}{
|
||||
{"misspelled command", []string{"commission"}, true}, // nolint: misspell
|
||||
{"misspelled command", []string{"COMMISSION"}, true},
|
||||
{"no command provided", []string{}, false},
|
||||
{"help flag", []string{"commission", "--help"}, false}, // nolint: misspell
|
||||
{"shorthand help flag", []string{"commission", "-h"}, false}, // nolint: misspell
|
||||
{"help flag", []string{"COMMISSION", "--help"}, false},
|
||||
{"shorthand help flag", []string{"COMMISSION", "-h"}, false},
|
||||
{"flag only, no command provided", []string{"--gas", "1000atom"}, false},
|
||||
{"flag and misspelled command", []string{"--gas", "1000atom", "comission"}, true}, // nolint: misspell
|
||||
{"flag and misspelled command", []string{"--gas", "1000atom", "COMMISSION"}, true},
|
||||
}
|
||||
|
||||
for _, tt := range tests {
|
||||
|
||||
Reference in New Issue
Block a user