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

Make ValidatorIndex visible #6621

Open
wants to merge 2 commits into
base: anchor
Choose a base branch
from
Open

Make ValidatorIndex visible #6621

wants to merge 2 commits into from

Conversation

Zacholme7
Copy link
Member

Issue Addressed

N/A

Proposed Changes

Change ValidatorIndex to pub and export it

Additional Info

Needed for defining types in Anchor

@CLAassistant
Copy link

CLAassistant commented Nov 27, 2024

CLA assistant check
All committers have signed the CLA.

@Zacholme7 Zacholme7 changed the title Make ValidatorIndex visible Make ValidatorIndex visible Nov 27, 2024
@@ -1,7 +1,7 @@
use crate::*;
use rpds::HashTrieMapSync as HashTrieMap;

type ValidatorIndex = usize;
pub type ValidatorIndex = usize;
Copy link
Member

Choose a reason for hiding this comment

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

this is a type alias, if consensus is exposing a function/method that requires ValidatorIndex we should probably either switch it to usize or make ValidatorIndex a newtype to avoid breaking change issues

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.

3 participants