File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
async_substrate_interface Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -1034,8 +1034,6 @@ async def init_runtime(
10341034 metadata_v15 = runtime .metadata_v15 ,
10351035 )
10361036
1037- return runtime
1038-
10391037 async def create_storage_key (
10401038 self ,
10411039 pallet : str ,
@@ -2199,9 +2197,9 @@ async def create_scale_object(
21992197 Returns:
22002198 The created Scale Type object
22012199 """
2202- runtime = await self .init_runtime (block_hash = block_hash )
2200+ await self .init_runtime (block_hash = block_hash )
22032201 if "metadata" not in kwargs :
2204- kwargs ["metadata" ] = runtime .metadata
2202+ kwargs ["metadata" ] = self . runtime .metadata
22052203
22062204 return runtime .runtime_config .create_scale_object (
22072205 type_string , data = data , ** kwargs
@@ -3199,9 +3197,9 @@ async def get_metadata_call_function(
31993197 Returns:
32003198 list of call functions
32013199 """
3202- runtime = await self .init_runtime (block_hash = block_hash )
3200+ await self .init_runtime (block_hash = block_hash )
32033201
3204- for pallet in runtime .metadata .pallets :
3202+ for pallet in self . runtime .metadata .pallets :
32053203 if pallet .name == module_name and pallet .calls :
32063204 for call in pallet .calls :
32073205 if call .name == call_function_name :
You can’t perform that action at this time.
0 commit comments