Skip to content

Commit 3fc79d1

Browse files
authored
Merge pull request #28 from opentensor/release/1.0.0rc10
Release/1.0.0rc10
2 parents 446ea10 + e3b22f1 commit 3fc79d1

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

CHANGELOG.md

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

3+
## 1.0.0rc10 /2025-02-04
4+
* Fixes decoding account ids for sync substrate
5+
36
## 1.0.0rc9 /2025-01-30
47
* Fixes decoding account ids
58

async_substrate_interface/sync_substrate.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
GenericCall,
1212
GenericExtrinsic,
1313
GenericRuntimeCallDefinition,
14-
ss58_decode,
14+
ss58_encode,
1515
)
1616
from scalecodec.base import RuntimeConfigurationObject, ScaleBytes, ScaleType
1717
from websockets.sync.client import connect
@@ -618,7 +618,7 @@ def decode_scale(
618618
else:
619619
if type_string == "scale_info::0": # Is an AccountId
620620
# Decode AccountId bytes to SS58 address
621-
return bytes.fromhex(ss58_decode(scale_bytes, SS58_FORMAT))
621+
return ss58_encode(scale_bytes, SS58_FORMAT)
622622
else:
623623
obj = decode_by_type_string(type_string, self.registry, scale_bytes)
624624
if return_scale_obj:

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.0rc9"
3+
version = "1.0.0rc10"
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)