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.0rc9 /2025-01-30
* Fixes decoding account ids

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

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 @@ -30,7 +30,7 @@
GenericCall,
GenericExtrinsic,
GenericRuntimeCallDefinition,
ss58_decode,
ss58_encode,
)
from websockets.asyncio.client import connect
from websockets.exceptions import ConnectionClosed
Expand Down Expand Up @@ -872,7 +872,7 @@ async def decode_scale(
else:
if type_string == "scale_info::0": # Is an AccountId
# Decode AccountId bytes to SS58 address
return bytes.fromhex(ss58_decode(scale_bytes, SS58_FORMAT))
return ss58_encode(scale_bytes, SS58_FORMAT)
else:
await self._wait_for_registry(_attempt, _retries)
obj = decode_by_type_string(type_string, self.registry, scale_bytes)
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.0rc8"
version = "1.0.0rc9"
description = "Asyncio library for interacting with substrate. Mostly API-compatible with py-substrate-interface"
readme = "README.md"
license = { file = "LICENSE" }
Expand Down