File tree Expand file tree Collapse file tree 1 file changed +15
-12
lines changed Expand file tree Collapse file tree 1 file changed +15
-12
lines changed Original file line number Diff line number Diff line change @@ -1724,18 +1724,21 @@ def wallet_ask(
1724
1724
if valid [1 ]:
1725
1725
return wallet , wallet .hotkey .ss58_address
1726
1726
else :
1727
- hotkey = (
1728
- Prompt .ask (
1729
- "Enter the SS58 of the hotkey to use for this transaction."
1730
- )
1731
- ).strip ()
1732
- if not is_valid_ss58_address (hotkey ):
1733
- err_console .print (
1734
- f"[red]Error: { hotkey } is not valid SS58 address."
1735
- )
1736
- raise typer .Exit (1 )
1727
+ if wallet_hotkey and is_valid_ss58_address (wallet_hotkey ):
1728
+ return wallet , wallet_hotkey
1737
1729
else :
1738
- return wallet , hotkey
1730
+ hotkey = (
1731
+ Prompt .ask (
1732
+ "Enter the SS58 of the hotkey to use for this transaction."
1733
+ )
1734
+ ).strip ()
1735
+ if not is_valid_ss58_address (hotkey ):
1736
+ err_console .print (
1737
+ f"[red]Error: { hotkey } is not valid SS58 address."
1738
+ )
1739
+ raise typer .Exit (1 )
1740
+ else :
1741
+ return wallet , hotkey
1739
1742
else :
1740
1743
return wallet
1741
1744
@@ -5925,7 +5928,7 @@ def liquidity_list(
5925
5928
wallet_name = wallet_name ,
5926
5929
wallet_path = wallet_path ,
5927
5930
wallet_hotkey = wallet_hotkey ,
5928
- ask_for = [WO .NAME , WO .HOTKEY , WO . PATH ],
5931
+ ask_for = [WO .NAME , WO .PATH ],
5929
5932
validate = WV .WALLET ,
5930
5933
)
5931
5934
self ._run_command (
You can’t perform that action at this time.
0 commit comments