Skip to content

Commit 3cc24e3

Browse files
authored
Merge pull request #22 from opentensor/release/1.0.0rc8
Release/1.0.0rc8
2 parents 75e50f7 + 54bbdfb commit 3cc24e3

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## 1.0.0rc8 /2025-01-30
4+
* Minor bug fixes
5+
36
## 1.0.0rc7 /2025-01-29
47

58
## What's Changed

async_substrate_interface/async_substrate.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2493,7 +2493,7 @@ async def runtime_call(
24932493
method: str,
24942494
params: Optional[Union[list, dict]] = None,
24952495
block_hash: Optional[str] = None,
2496-
) -> ScaleType:
2496+
) -> ScaleObj:
24972497
"""
24982498
Calls a runtime API method
24992499
@@ -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)

async_substrate_interface/sync_substrate.py

+2-2
Original file line numberDiff line numberDiff 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)

async_substrate_interface/types.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ def _encode_scale(self, type_string, value: Any) -> bytes:
743743
result += account # Already encoded
744744
else:
745745
result += bytes.fromhex(
746-
ss58_decode(value, SS58_FORMAT)
746+
ss58_decode(account, SS58_FORMAT)
747747
) # SS58 string
748748
return result
749749

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "async-substrate-interface"
3-
version = "1.0.0rc7"
3+
version = "1.0.0rc8"
44
description = "Asyncio library for interacting with substrate. Mostly API-compatible with py-substrate-interface"
55
readme = "README.md"
66
license = { file = "LICENSE" }

0 commit comments

Comments
 (0)