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 d1ff95e commit 8602653Copy full SHA for 8602653
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 scale_bytes
+ 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