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

rust: fix staking_params_are_empty #4460

Closed
ptrus opened this issue Feb 4, 2022 · 0 comments · Fixed by #4494
Closed

rust: fix staking_params_are_empty #4460

ptrus opened this issue Feb 4, 2022 · 0 comments · Fixed by #4494
Assignees

Comments

@ptrus
Copy link
Member

ptrus commented Feb 4, 2022

fn staking_params_are_empty(p: &RuntimeStakingParameters) -> bool {
return Option::is_none(&p.thresholds);
}

^ should be updated with new fields. Also add a test for consistent runtime struct serialization.

Originally posted by @kostko in #4455 (comment)

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 a pull request may close this issue.

1 participant