File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
async_substrate_interface Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -814,7 +814,7 @@ async def load_registry(self):
814814 ):
815815 for field in variants .get ("fields" , [{}]):
816816 if field .get ("type" ) and field .get ("typeName" ):
817- field ["typeName" ] = registry_type_map [ field ["type" ] ]
817+ registry_type_map [ field ["typeName" ]] = field ["type" ]
818818 self .registry_type_map = registry_type_map
819819
820820 async def _load_registry_at_block (self , block_hash : str ) -> MetadataV15 :
Original file line number Diff line number Diff line change @@ -618,7 +618,7 @@ def load_registry(self):
618618 ):
619619 for field in variants .get ("fields" , [{}]):
620620 if field .get ("type" ) and field .get ("typeName" ):
621- field ["typeName" ] = registry_type_map [ field ["type" ] ]
621+ registry_type_map [ field ["typeName" ]] = field ["type" ]
622622 self .registry_type_map = registry_type_map
623623
624624 def _load_registry_at_block (self , block_hash : str ) -> MetadataV15 :
@@ -1692,6 +1692,7 @@ def _make_rpc_request(
16921692 item_id = 0
16931693 for payload in payloads :
16941694 item_id += 1
1695+ print ({** payload ["payload" ], ** {"id" : item_id }})
16951696 ws .send (json .dumps ({** payload ["payload" ], ** {"id" : item_id }}))
16961697 request_manager .add_request (item_id , payload ["id" ])
16971698
You can’t perform that action at this time.
0 commit comments