File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
async_substrate_interface Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -3653,6 +3653,7 @@ async def get_async_substrate_interface(
36533653 max_retries : int = 5 ,
36543654 retry_timeout : float = 60.0 ,
36553655 _mock : bool = False ,
3656+ legacy_account_id_decode : bool = True
36563657) -> "AsyncSubstrateInterface" :
36573658 """
36583659 Factory function for creating an initialized AsyncSubstrateInterface
@@ -3667,6 +3668,7 @@ async def get_async_substrate_interface(
36673668 max_retries ,
36683669 retry_timeout ,
36693670 _mock ,
3671+ legacy_account_id_decode = legacy_account_id_decode
36703672 )
36713673 await substrate .initialize ()
36723674 return substrate
Original file line number Diff line number Diff line change @@ -117,6 +117,7 @@ def __init__(
117117 max_retries : int = 5 ,
118118 retry_timeout : float = 60.0 ,
119119 _mock : bool = False ,
120+ legacy_account_id_decode : bool = True
120121 ):
121122 fallback_chains = fallback_chains or []
122123 self .fallback_chains = (
@@ -131,6 +132,7 @@ def __init__(
131132 self .max_retries = max_retries
132133 self .chain_endpoint = url
133134 self .url = url
135+ self .legacy_account_id_decode = legacy_account_id_decode
134136 initialized = False
135137 for chain_url in [url ] + fallback_chains :
136138 try :
@@ -146,6 +148,7 @@ def __init__(
146148 _mock = _mock ,
147149 retry_timeout = retry_timeout ,
148150 max_retries = max_retries ,
151+ legacy_account_id_decode = self .legacy_account_id_decode
149152 )
150153 initialized = True
151154 logger .info (f"Connected to { chain_url } " )
You can’t perform that action at this time.
0 commit comments