File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -305,7 +305,7 @@ def prepare_account(args: Any):
305305
306306def _get_address_hrp (args : Any ) -> str :
307307 """If proxy is provided, fetch the hrp from the network, otherwise get the hrp from config"""
308- hrp = ""
308+ hrp : str = ""
309309
310310 if hasattr (args , "proxy" ) and args .proxy :
311311 hrp = _get_hrp_from_proxy (args )
@@ -322,15 +322,15 @@ def _get_hrp_from_proxy(args: Any) -> str:
322322 network_provider_config = config .get_config_for_network_providers ()
323323 proxy = ProxyNetworkProvider (url = args .proxy , config = network_provider_config )
324324 network_config = proxy .get_network_config ()
325- hrp = network_config .raw .get ("erd_address_hrp" , "" )
325+ hrp : str = network_config .raw .get ("erd_address_hrp" , "" )
326326 return hrp
327327
328328
329329def _get_hrp_from_api (args : Any ) -> str :
330330 network_provider_config = config .get_config_for_network_providers ()
331331 proxy = ApiNetworkProvider (url = args .api , config = network_provider_config )
332332 network_config = proxy .get_network_config ()
333- hrp = network_config .raw .get ("erd_address_hrp" , "" )
333+ hrp : str = network_config .raw .get ("erd_address_hrp" , "" )
334334 return hrp
335335
336336
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ def get_value(name: str) -> str:
5757 return value
5858
5959
60- def get_address_hrp ():
60+ def get_address_hrp () -> str :
6161 return get_value ("default_address_hrp" )
6262
6363
You can’t perform that action at this time.
0 commit comments