File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
async_substrate_interface Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -755,7 +755,8 @@ def init_runtime(
755
755
self .runtime = runtime
756
756
return runtime
757
757
else :
758
- return self .get_runtime_for_version (runtime_version , block_hash )
758
+ self .runtime = self .get_runtime_for_version (runtime_version , block_hash )
759
+ return self .runtime
759
760
760
761
def get_runtime_for_version (
761
762
self , runtime_version : int , block_hash : Optional [str ] = None
@@ -2524,13 +2525,13 @@ def runtime_call(
2524
2525
for idx , param in enumerate (runtime_call_def ["inputs" ]):
2525
2526
param_type_string = f"scale_info::{ param ['ty' ]} "
2526
2527
if isinstance (params , list ):
2527
- param_data += self .encode_scale (param_type_string , params [idx ])
2528
+ param_data += self .encode_scale (param_type_string , params [idx ], runtime = runtime )
2528
2529
else :
2529
2530
if param ["name" ] not in params :
2530
2531
raise ValueError (f"Runtime Call param '{ param ['name' ]} ' is missing" )
2531
2532
2532
2533
param_data += self .encode_scale (
2533
- param_type_string , params [param ["name" ]]
2534
+ param_type_string , params [param ["name" ]], runtime = runtime
2534
2535
)
2535
2536
2536
2537
# RPC request
You can’t perform that action at this time.
0 commit comments