Skip to content

Commit 29e5efc

Browse files
committed
Name change due to new registry map method.
1 parent ccb2fb8 commit 29e5efc

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

async_substrate_interface/async_substrate.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -737,8 +737,9 @@ async def initialize(self):
737737
chain = await self.rpc_request("system_chain", [])
738738
self._chain = chain.get("result")
739739
init_load = await asyncio.gather(
740-
self.load_registry(), self._first_initialize_runtime(),
741-
return_exceptions=True
740+
self.load_registry(),
741+
self._first_initialize_runtime(),
742+
return_exceptions=True,
742743
)
743744
for potential_exception in init_load:
744745
if isinstance(potential_exception, Exception):

async_substrate_interface/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ def _encode_scale(self, type_string, value: Any) -> bytes:
797797
else:
798798
try:
799799
vec_acct_id = (
800-
f"scale_info::{self.registry_type_map['Vec<T::AccountId>']}"
800+
f"scale_info::{self.registry_type_map['Vec<AccountId32>']}"
801801
)
802802
except KeyError:
803803
vec_acct_id = "scale_info::152"

0 commit comments

Comments
 (0)