Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions bittensor_cli/src/commands/sudo.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,11 @@ async def set_hyperparameter_extrinsic(
":cross_mark: [red]Invalid hyperparameter specified.[/red]"
)
return False
if sudo_:
if not Confirm.ask(
"This hyperparam is only settable by root sudo users. If you are not, this will fail. Please confirm"
):
return False

substrate = subtensor.substrate
msg_value = value if not arbitrary_extrinsic else call_params
Expand Down
Loading