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.
2 parents 1b108d7 + 8602653 commit fed5f8dCopy full SHA for fed5f8d
async_substrate_interface/async_substrate.py
@@ -30,7 +30,7 @@
30
GenericCall,
31
GenericExtrinsic,
32
GenericRuntimeCallDefinition,
33
- ss58_decode,
+ ss58_encode,
34
)
35
from websockets.asyncio.client import connect
36
from websockets.exceptions import ConnectionClosed
@@ -872,7 +872,7 @@ async def decode_scale(
872
else:
873
if type_string == "scale_info::0": # Is an AccountId
874
# Decode AccountId bytes to SS58 address
875
- return bytes.fromhex(ss58_decode(scale_bytes, SS58_FORMAT))
+ return ss58_encode(scale_bytes, SS58_FORMAT)
876
877
await self._wait_for_registry(_attempt, _retries)
878
obj = decode_by_type_string(type_string, self.registry, scale_bytes)
0 commit comments