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: Add deprecation mark #2247

Merged
merged 2 commits into from
Sep 12, 2024
Merged

chore: Add deprecation mark #2247

merged 2 commits into from
Sep 12, 2024

Conversation

kulikthebird
Copy link
Contributor

No description provided.

@kulikthebird kulikthebird force-pushed the tkulik/deprecate_variants branch 4 times, most recently from eca7348 to 463996c Compare September 10, 2024 15:25
@@ -25,6 +25,7 @@ pub enum BankQuery {
/// This calls into the native bank module for all denominations.
/// Note that this may be much more expensive than Balance and should be avoided if possible.
/// Return value is AllBalanceResponse.
#[deprecated]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we also add an explanatory text here? Similar to the other one: "Returns a potentially unbound number of results, which is inherently vulnerable to attacks. If you think you have a valid usecase, please open an issue."

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

packages/std/src/query/ibc.rs Outdated Show resolved Hide resolved
contracts/burner/src/contract.rs Show resolved Hide resolved
contracts/hackatom/src/contract.rs Show resolved Hide resolved
@kulikthebird kulikthebird marked this pull request as ready for review September 12, 2024 09:28
Copy link
Collaborator

@chipshort chipshort left a comment

Choose a reason for hiding this comment

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

LGTM

@kulikthebird kulikthebird merged commit 66c3370 into main Sep 12, 2024
33 checks passed
@kulikthebird kulikthebird deleted the tkulik/deprecate_variants branch September 12, 2024 15:59
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.

Deprecate query BankQuery::AllBalances Deprecate IbcQuery::ListChannels
2 participants