File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
async_substrate_interface Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 66from datetime import datetime
77from typing import Optional , Union , Any
88
9+ import scalecodec .types
910from bt_decode import PortableRegistry , encode as encode_by_type_string
11+ from bt_decode .bt_decode import MetadataV15
1012from scalecodec import ss58_encode , ss58_decode , is_valid_ss58_address
1113from scalecodec .base import RuntimeConfigurationObject , ScaleBytes
1214from scalecodec .type_registry import load_type_registry_preset
@@ -121,13 +123,13 @@ class Runtime:
121123 def __init__ (
122124 self ,
123125 chain : str ,
124- metadata ,
125- type_registry ,
126+ metadata : scalecodec . types . GenericMetadataVersioned ,
127+ type_registry : dict ,
126128 runtime_config : Optional [RuntimeConfigurationObject ] = None ,
127- metadata_v15 = None ,
128- runtime_info = None ,
129- registry = None ,
130- ss58_format = SS58_FORMAT ,
129+ metadata_v15 : Optional [ MetadataV15 ] = None ,
130+ runtime_info : Optional [ dict ] = None ,
131+ registry : Optional [ PortableRegistry ] = None ,
132+ ss58_format : int = SS58_FORMAT ,
131133 ):
132134 self .ss58_format = ss58_format
133135 self .config = {}
You can’t perform that action at this time.
0 commit comments