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

feat: tooling for tests about malformed kv queries #47

Merged

Conversation

ratik
Copy link
Contributor

@ratik ratik commented Oct 17, 2022

@ratik ratik marked this pull request as ready for review October 17, 2022 17:07
@ratik ratik changed the base branch from main to neutron_audit_oak_19_09_2022_fixes October 17, 2022 17:08
@ratik ratik force-pushed the feat/kv-query-keys-validation branch from 3cbf7f0 to 6e53c44 Compare October 17, 2022 17:35
@albertandrejev
Copy link
Member

Can you add more description please? It helps a lot to be in context with good description.

@albertandrejev
Copy link
Member

tbh I found it very dangerous to have test specific code inside contract especially if this code can change behavior of the sudo handler. It may lead to unpredictable security flaws.

@@ -36,6 +36,18 @@ pub enum ExecuteMsg {
query_id: u64,
},
/// Used only in integration tests framework to simulate failures.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add more descriptive comment for this and following methods please?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, I've added more detailed description

ratik added 2 commits October 31, 2022 13:44
…on-org/neutron-contracts into feat/kv-query-keys-validation
…on-org/neutron-contracts into feat/kv-query-keys-validation
zavgorodnii
zavgorodnii previously approved these changes Nov 3, 2022
ratik added 3 commits November 3, 2022 13:19
…on-org/neutron-contracts into feat/kv-query-keys-validation
…on-org/neutron-contracts into feat/kv-query-keys-validation
…on-org/neutron-contracts into feat/kv-query-keys-validation
@zavgorodnii zavgorodnii merged commit ce79ccf into neutron_audit_oak_19_09_2022_fixes Nov 3, 2022
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.

4 participants