@@ -279,7 +279,7 @@ class Options:
279
279
"--dashboard.path" ,
280
280
help = "Path to save the dashboard HTML file. For example: `~/.bittensor/dashboard`." ,
281
281
)
282
- era = typer .Option (
282
+ era : int = typer .Option (
283
283
3 , help = "Length (in blocks) for which the transaction should be valid."
284
284
)
285
285
@@ -1752,6 +1752,7 @@ def wallet_transfer(
1752
1752
transfer_all : bool = typer .Option (
1753
1753
False , "--all" , prompt = False , help = "Transfer all available balance."
1754
1754
),
1755
+ era : int = Options .era ,
1755
1756
wallet_name : str = Options .wallet_name ,
1756
1757
wallet_path : str = Options .wallet_path ,
1757
1758
wallet_hotkey : str = Options .wallet_hotkey ,
@@ -1800,12 +1801,13 @@ def wallet_transfer(
1800
1801
amount = FloatPrompt .ask ("Enter amount (in TAO) to transfer." )
1801
1802
return self ._run_command (
1802
1803
wallets .transfer (
1803
- wallet ,
1804
- subtensor ,
1805
- destination_ss58_address ,
1806
- amount ,
1807
- transfer_all ,
1808
- prompt ,
1804
+ wallet = wallet ,
1805
+ subtensor = subtensor ,
1806
+ destination = destination_ss58_address ,
1807
+ amount = amount ,
1808
+ transfer_all = transfer_all ,
1809
+ era = era ,
1810
+ prompt = prompt ,
1809
1811
)
1810
1812
)
1811
1813
@@ -5055,6 +5057,13 @@ def subnets_register(
5055
5057
wallet_hotkey : str = Options .wallet_hotkey ,
5056
5058
network : Optional [list [str ]] = Options .network ,
5057
5059
netuid : int = Options .netuid ,
5060
+ era : Optional [
5061
+ int
5062
+ ] = typer .Option ( # Should not be Options.era bc this needs to be an Optional[int]
5063
+ None ,
5064
+ help = "Length (in blocks) for which the transaction should be valid. Note that it is possible that if you "
5065
+ "use an era for this transaction that you may pay a different fee to register than the one stated." ,
5066
+ ),
5058
5067
prompt : bool = Options .prompt ,
5059
5068
quiet : bool = Options .quiet ,
5060
5069
verbose : bool = Options .verbose ,
@@ -5083,6 +5092,7 @@ def subnets_register(
5083
5092
wallet ,
5084
5093
self .initialize_chain (network ),
5085
5094
netuid ,
5095
+ era ,
5086
5096
prompt ,
5087
5097
)
5088
5098
)
0 commit comments