@@ -5341,6 +5341,7 @@ def weights_reveal(
5341
5341
"-s" ,
5342
5342
help = "Corresponding salt for the hash function, e.g. -s 163,241,217 ..." ,
5343
5343
),
5344
+ json_output : bool = Options .json_output ,
5344
5345
quiet : bool = Options .quiet ,
5345
5346
verbose : bool = Options .verbose ,
5346
5347
prompt : bool = Options .prompt ,
@@ -5354,7 +5355,7 @@ def weights_reveal(
5354
5355
5355
5356
[green]$[/green] btcli wt reveal --netuid 1 --uids 1,2,3,4 --weights 0.1,0.2,0.3,0.4 --salt 163,241,217,11,161,142,147,189
5356
5357
"""
5357
- self .verbosity_handler (quiet , verbose )
5358
+ self .verbosity_handler (quiet , verbose , json_output )
5358
5359
uids = list_prompt (uids , int , "UIDs of interest for the specified netuid" )
5359
5360
weights = list_prompt (
5360
5361
weights , float , "Corresponding weights for the specified UIDs"
@@ -5387,7 +5388,7 @@ def weights_reveal(
5387
5388
err_console .print (
5388
5389
"The number of UIDs you specify must match up with the specified number of weights"
5389
5390
)
5390
- raise typer . Exit ()
5391
+ return
5391
5392
5392
5393
if salt :
5393
5394
salt = parse_to_list (
@@ -5416,6 +5417,7 @@ def weights_reveal(
5416
5417
salt ,
5417
5418
__version_as_int__ ,
5418
5419
prompt = prompt ,
5420
+ json_output = json_output ,
5419
5421
)
5420
5422
)
5421
5423
@@ -5439,6 +5441,7 @@ def weights_commit(
5439
5441
"-s" ,
5440
5442
help = "Corresponding salt for the hash function, e.g. -s 163 -s 241 -s 217 ..." ,
5441
5443
),
5444
+ json_output : bool = Options .json_output ,
5442
5445
quiet : bool = Options .quiet ,
5443
5446
verbose : bool = Options .verbose ,
5444
5447
prompt : bool = Options .prompt ,
@@ -5456,7 +5459,7 @@ def weights_commit(
5456
5459
[italic]Note[/italic]: This command is used to commit weights for a specific subnet and requires the user to have the necessary
5457
5460
permissions.
5458
5461
"""
5459
- self .verbosity_handler (quiet , verbose )
5462
+ self .verbosity_handler (quiet , verbose , json_output )
5460
5463
5461
5464
if uids :
5462
5465
uids = parse_to_list (
@@ -5485,7 +5488,7 @@ def weights_commit(
5485
5488
err_console .print (
5486
5489
"The number of UIDs you specify must match up with the specified number of weights"
5487
5490
)
5488
- raise typer . Exit ()
5491
+ return
5489
5492
5490
5493
if salt :
5491
5494
salt = parse_to_list (
@@ -5512,6 +5515,7 @@ def weights_commit(
5512
5515
weights ,
5513
5516
salt ,
5514
5517
__version_as_int__ ,
5518
+ json_output = json_output ,
5515
5519
prompt = prompt ,
5516
5520
)
5517
5521
)
0 commit comments