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

Hide staking query symbols behind staking feature flag #881

Merged
merged 2 commits into from
Apr 15, 2021

Conversation

webmaster128
Copy link
Member

@webmaster128 webmaster128 commented Apr 15, 2021

The first commit is just storing code by module. The second one is the interesting one.

@webmaster128 webmaster128 requested a review from ethanfrey April 15, 2021 08:38
Copy link
Member

@ethanfrey ethanfrey left a comment

Choose a reason for hiding this comment

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

Nice

@@ -294,6 +298,7 @@ impl<C: DeserializeOwned> MockQuerier<C> {
pub fn new(balances: &[(&str, &[Coin])]) -> Self {
MockQuerier {
bank: BankQuerier::new(balances),
#[cfg(feature = "staking")]
Copy link
Member

Choose a reason for hiding this comment

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

Wow, I thought this got clippy/compile errors. I guess things got better since rust 1.45

@@ -863,6 +872,7 @@ mod tests {
assert_eq!(res.amount, coin(0, "ELF"));
}

#[cfg(feature = "staking")]
Copy link
Member

Choose a reason for hiding this comment

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

Do we test with staking enabled? I think so.

Copy link
Member

Choose a reason for hiding this comment

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

@ethanfrey ethanfrey merged commit afe6466 into main Apr 15, 2021
@ethanfrey ethanfrey deleted the flag-staking-query branch April 15, 2021 08:55
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.

2 participants