Skip to content

Commit 11767c0

Browse files
committed
Fixes sync ss58 decoding
1 parent 90b98c9 commit 11767c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

async_substrate_interface/sync_substrate.py

Lines changed: 2 additions & 2 deletions
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:

0 commit comments

Comments
 (0)