File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
async_substrate_interface Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2628,7 +2628,7 @@ async def get_constant(
2628
2628
constant_name : str ,
2629
2629
block_hash : Optional [str ] = None ,
2630
2630
reuse_block_hash : bool = False ,
2631
- ) -> Optional ["ScaleType" ]:
2631
+ ) -> Optional [ScaleObj ]:
2632
2632
"""
2633
2633
Returns the decoded `ScaleType` object of the constant for given module name, call function name and block_hash
2634
2634
(or chaintip if block_hash is omitted)
Original file line number Diff line number Diff line change @@ -598,7 +598,7 @@ def decode_scale(
598
598
type_string : str ,
599
599
scale_bytes : bytes ,
600
600
return_scale_obj = False ,
601
- ) -> Any :
601
+ ) -> Union [ ScaleObj , Any ] :
602
602
"""
603
603
Helper function to decode arbitrary SCALE-bytes (e.g. 0x02000000) according to given RUST type_string
604
604
(e.g. BlockNumber). The relevant versioning information of the type (if defined) will be applied if block_hash
@@ -2334,7 +2334,7 @@ def get_constant(
2334
2334
constant_name : str ,
2335
2335
block_hash : Optional [str ] = None ,
2336
2336
reuse_block_hash : bool = False ,
2337
- ) -> Optional ["ScaleType" ]:
2337
+ ) -> Optional [ScaleObj ]:
2338
2338
"""
2339
2339
Returns the decoded `ScaleType` object of the constant for given module name, call function name and block_hash
2340
2340
(or chaintip if block_hash is omitted)
You can’t perform that action at this time.
0 commit comments