Skip to content

feat(sdk-coin-tao): add netuid validation #5657

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Vijay-Jagannathan
Copy link
Contributor

Ticket: SC-1044

Only root subnet (0) is supported as of today

Verified

This commit was signed with the committer’s verified signature.
Vijay-Jagannathan Vijay Jagannathan
Ticket: SC-1044
@Vijay-Jagannathan Vijay-Jagannathan marked this pull request as ready for review March 5, 2025 09:54
@Vijay-Jagannathan Vijay-Jagannathan requested a review from a team as a code owner March 5, 2025 09:54
* Helper method to check whether netuid is 0 (only root network is supported now)
* @param {string} netduid of the subnet
*/
public validateNetuid(netduid: string) {
Copy link
Contributor

Choose a reason for hiding this comment

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

We only check if it's 0? What if it's some other type of string value?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Netuid is being sent from staking service to WP as 0; indicates which subnet and currently only root subnet (0) is being used

Copy link

This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.

@github-actions github-actions bot added the stale label Apr 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants