Skip to content

Commit d9dfd6f

Browse files
committed
Cleanup
1 parent 4978577 commit d9dfd6f

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

async_substrate_interface/types.py

-8
Original file line numberDiff line numberDiff line change
@@ -633,12 +633,8 @@ def _load_registry_type_map(self, registry):
633633
type_id = type_entry["id"]
634634
type_def = type_entry["type"]["def"]
635635
type_path = type_entry["type"].get("path")
636-
if type_id == 514:
637-
print(type_id)
638-
639636
if type_entry.get("params") or "variant" in type_def:
640637
continue
641-
642638
if type_path:
643639
type_name = type_path[-1]
644640
registry_type_map[type_name] = type_id
@@ -862,10 +858,6 @@ def _encode_scale(self, type_string, value: Any) -> bytes:
862858
)
863859
except KeyError:
864860
vec_acct_id = "scale_info::152"
865-
import json
866-
867-
with open("registry_final_pass_elif.json", "w") as json_file:
868-
json.dump(self.registry_type_map, json_file, indent=4)
869861
try:
870862
optional_acct_u16 = f"scale_info::{self.registry_type_map['Option<(AccountId32, u16)>']}"
871863
except KeyError:

0 commit comments

Comments
 (0)