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(
3653
3653
max_retries : int = 5 ,
3654
3654
retry_timeout : float = 60.0 ,
3655
3655
_mock : bool = False ,
3656
+ legacy_account_id_decode : bool = True
3656
3657
) -> "AsyncSubstrateInterface" :
3657
3658
"""
3658
3659
Factory function for creating an initialized AsyncSubstrateInterface
@@ -3667,6 +3668,7 @@ async def get_async_substrate_interface(
3667
3668
max_retries ,
3668
3669
retry_timeout ,
3669
3670
_mock ,
3671
+ legacy_account_id_decode = legacy_account_id_decode
3670
3672
)
3671
3673
await substrate .initialize ()
3672
3674
return substrate
Original file line number Diff line number Diff line change @@ -117,6 +117,7 @@ def __init__(
117
117
max_retries : int = 5 ,
118
118
retry_timeout : float = 60.0 ,
119
119
_mock : bool = False ,
120
+ legacy_account_id_decode : bool = True
120
121
):
121
122
fallback_chains = fallback_chains or []
122
123
self .fallback_chains = (
@@ -131,6 +132,7 @@ def __init__(
131
132
self .max_retries = max_retries
132
133
self .chain_endpoint = url
133
134
self .url = url
135
+ self .legacy_account_id_decode = legacy_account_id_decode
134
136
initialized = False
135
137
for chain_url in [url ] + fallback_chains :
136
138
try :
@@ -146,6 +148,7 @@ def __init__(
146
148
_mock = _mock ,
147
149
retry_timeout = retry_timeout ,
148
150
max_retries = max_retries ,
151
+ legacy_account_id_decode = self .legacy_account_id_decode
149
152
)
150
153
initialized = True
151
154
logger .info (f"Connected to { chain_url } " )
You can’t perform that action at this time.
0 commit comments