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(
26282628 constant_name : str ,
26292629 block_hash : Optional [str ] = None ,
26302630 reuse_block_hash : bool = False ,
2631- ) -> Optional ["ScaleType" ]:
2631+ ) -> Optional [ScaleObj ]:
26322632 """
26332633 Returns the decoded `ScaleType` object of the constant for given module name, call function name and block_hash
26342634 (or chaintip if block_hash is omitted)
Original file line number Diff line number Diff line change @@ -598,7 +598,7 @@ def decode_scale(
598598 type_string : str ,
599599 scale_bytes : bytes ,
600600 return_scale_obj = False ,
601- ) -> Any :
601+ ) -> Union [ ScaleObj , Any ] :
602602 """
603603 Helper function to decode arbitrary SCALE-bytes (e.g. 0x02000000) according to given RUST type_string
604604 (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(
23342334 constant_name : str ,
23352335 block_hash : Optional [str ] = None ,
23362336 reuse_block_hash : bool = False ,
2337- ) -> Optional ["ScaleType" ]:
2337+ ) -> Optional [ScaleObj ]:
23382338 """
23392339 Returns the decoded `ScaleType` object of the constant for given module name, call function name and block_hash
23402340 (or chaintip if block_hash is omitted)
You can’t perform that action at this time.
0 commit comments