Skip to content
Merged
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
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