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

Add setting delegate take #1903

Merged
merged 24 commits into from
May 20, 2024
Merged

Add setting delegate take #1903

merged 24 commits into from
May 20, 2024

Conversation

gztensor
Copy link
Contributor

This PR adds setting delegate take functionality.

Command:

btcli root set_take

self,
wallet: "bittensor.wallet",
hotkey_ss58: str,
take: int,
Copy link
Contributor

Choose a reason for hiding this comment

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

Is take supposed to be an int or a float? It's defined here as int, but it's referenced elsewhere (like extrinsics/delegation.py as float.

Copy link
Contributor

Choose a reason for hiding this comment

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

This is correct. The user passes a a float via the cli, is is converted into a u16 int. So i think its right. The subtensor function should take a float , while the extrinsics should accept ints

@gus-opentensor gus-opentensor merged commit 3882102 into staging May 20, 2024
11 checks passed
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.

None yet

6 participants