We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f43e5d commit 7fd19a7Copy full SHA for 7fd19a7
bittensor_cli/src/commands/stake/claim.py
@@ -82,9 +82,9 @@ async def set_claim_type(
82
if claim_type is not None:
83
new_type = claim_type
84
else:
85
- new_type = Prompt.ask(
86
- "Select new root claim type", choices=["Swap", "Keep"], default=current_type
87
- )
+new_type = claim_type if claim_type else Prompt.ask(
+ "Select new root claim type", choices=["Swap", "Keep"], default=current_type
+)
88
if new_type == current_type:
89
msg = f"Root claim type is already set to '{current_type}'. No change needed."
90
console.print(f"[yellow]{msg}[/yellow]")
0 commit comments