Skip to content

Add setting delegate take#1903

Merged
thealligatorking merged 24 commits intostagingfrom
feat/set-takes-staging
May 20, 2024
Merged

Add setting delegate take#1903
thealligatorking merged 24 commits intostagingfrom
feat/set-takes-staging

Conversation

@gztensor
Copy link
Contributor

This PR adds setting delegate take functionality.

Command:

btcli root set_take

@gztensor gztensor force-pushed the feat/set-takes-staging branch from b76da20 to a01175d Compare May 17, 2024 23:22
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
Collaborator

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

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.

6 participants