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

add basic registered query validation in genesis #230

Merged
merged 7 commits into from
Jul 18, 2023

Conversation

quasisamurai
Copy link
Contributor

No description provided.

@quasisamurai quasisamurai force-pushed the chore/registered-query-genesis-validation branch from 8166a7b to aad302d Compare May 2, 2023 08:35
foxpy
foxpy previously approved these changes May 23, 2023
x/interchainqueries/types/genesis.go Outdated Show resolved Hide resolved
foxpy
foxpy previously approved these changes May 26, 2023
Copy link
Collaborator

@pr0n00gler pr0n00gler left a 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?

foxpy
foxpy previously approved these changes Jun 30, 2023
pr0n00gler
pr0n00gler previously approved these changes Jun 30, 2023
@pr0n00gler pr0n00gler requested a review from NeverHappened June 30, 2023 12:06
interchainqueries.InitGenesis(ctx, *k, genesisState)
got := interchainqueries.ExportGenesis(ctx, *k)
err := got.Validate()
require.ErrorContains(t, err, "Invalid owner address")
Copy link
Contributor

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?

@quasisamurai quasisamurai dismissed stale reviews from pr0n00gler and foxpy via d60f2a0 June 30, 2023 13:13
@sotnikov-s sotnikov-s requested review from pr0n00gler and foxpy June 30, 2023 13:16
Copy link
Contributor

@NeverHappened NeverHappened left a 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

@quasisamurai
Copy link
Contributor Author

@NeverHappened there is nothing to validate, basically. Every param has no limitations

@pr0n00gler pr0n00gler merged commit f162952 into main Jul 18, 2023
@pr0n00gler pr0n00gler deleted the chore/registered-query-genesis-validation branch January 11, 2024 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants