We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90b98c9 commit 11767c0Copy full SHA for 11767c0
async_substrate_interface/sync_substrate.py
@@ -11,7 +11,7 @@
11
GenericCall,
12
GenericExtrinsic,
13
GenericRuntimeCallDefinition,
14
- ss58_decode,
+ ss58_encode,
15
)
16
from scalecodec.base import RuntimeConfigurationObject, ScaleBytes, ScaleType
17
from websockets.sync.client import connect
@@ -618,7 +618,7 @@ def decode_scale(
618
else:
619
if type_string == "scale_info::0": # Is an AccountId
620
# Decode AccountId bytes to SS58 address
621
- return bytes.fromhex(ss58_decode(scale_bytes, SS58_FORMAT))
+ return ss58_encode(scale_bytes, SS58_FORMAT)
622
623
obj = decode_by_type_string(type_string, self.registry, scale_bytes)
624
if return_scale_obj:
0 commit comments