Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 1.0.0rc8 /2025-01-30
* Minor bug fixes

## 1.0.0rc7 /2025-01-29

## What's Changed
Expand Down
4 changes: 2 additions & 2 deletions async_substrate_interface/async_substrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2493,7 +2493,7 @@ async def runtime_call(
method: str,
params: Optional[Union[list, dict]] = None,
block_hash: Optional[str] = None,
) -> ScaleType:
) -> ScaleObj:
"""
Calls a runtime API method

Expand Down Expand Up @@ -2628,7 +2628,7 @@ async def get_constant(
constant_name: str,
block_hash: Optional[str] = None,
reuse_block_hash: bool = False,
) -> Optional["ScaleType"]:
) -> Optional[ScaleObj]:
"""
Returns the decoded `ScaleType` object of the constant for given module name, call function name and block_hash
(or chaintip if block_hash is omitted)
Expand Down
4 changes: 2 additions & 2 deletions async_substrate_interface/sync_substrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ def decode_scale(
type_string: str,
scale_bytes: bytes,
return_scale_obj=False,
) -> Any:
) -> Union[ScaleObj, Any]:
"""
Helper function to decode arbitrary SCALE-bytes (e.g. 0x02000000) according to given RUST type_string
(e.g. BlockNumber). The relevant versioning information of the type (if defined) will be applied if block_hash
Expand Down Expand Up @@ -2334,7 +2334,7 @@ def get_constant(
constant_name: str,
block_hash: Optional[str] = None,
reuse_block_hash: bool = False,
) -> Optional["ScaleType"]:
) -> Optional[ScaleObj]:
"""
Returns the decoded `ScaleType` object of the constant for given module name, call function name and block_hash
(or chaintip if block_hash is omitted)
Expand Down
2 changes: 1 addition & 1 deletion async_substrate_interface/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@ def _encode_scale(self, type_string, value: Any) -> bytes:
result += account # Already encoded
else:
result += bytes.fromhex(
ss58_decode(value, SS58_FORMAT)
ss58_decode(account, SS58_FORMAT)
) # SS58 string
return result

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "async-substrate-interface"
version = "1.0.0rc7"
version = "1.0.0rc8"
description = "Asyncio library for interacting with substrate. Mostly API-compatible with py-substrate-interface"
readme = "README.md"
license = { file = "LICENSE" }
Expand Down