-
Notifications
You must be signed in to change notification settings - Fork 97
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
add basic registered query validation in genesis #230
Conversation
8166a7b
to
aad302d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have tests for these changes?
x/interchainqueries/genesis_test.go
Outdated
interchainqueries.InitGenesis(ctx, *k, genesisState) | ||
got := interchainqueries.ExportGenesis(ctx, *k) | ||
err := got.Validate() | ||
require.ErrorContains(t, err, "Invalid owner address") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why Invalid owner address if the test's name is TestGenesisMalformedQueriesNoKvKeys?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see implementation of this part of the task in changes:
Parms.Validate() returns nil insted of validation
@NeverHappened there is nothing to validate, basically. Every param has no limitations |
No description provided.