From b4c4df6a09e6feff9f1bdc1595f9703e836bf233 Mon Sep 17 00:00:00 2001 From: protolambda Date: Mon, 27 May 2019 23:41:29 +0200 Subject: [PATCH] bugfix in sss_types global building in script --- scripts/phase0/function_puller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/phase0/function_puller.py b/scripts/phase0/function_puller.py index 0047d5321..d7765a4a4 100644 --- a/scripts/phase0/function_puller.py +++ b/scripts/phase0/function_puller.py @@ -70,10 +70,10 @@ def get_spec(file_name: str) -> List[str]: code_lines.append(' ' + type_line) code_lines.append('\n') for (ssz_type_name, _) in type_defs: - code_lines.append(f' global_vars["{ssz_type_name}"] = {ssz_type_name},') + code_lines.append(f' global_vars["{ssz_type_name}"] = {ssz_type_name}') code_lines.append(' global_vars["ssz_types"] = [') for (ssz_type_name, _) in type_defs: - code_lines.append(f' {ssz_type_name},') + code_lines.append(f' "{ssz_type_name}",') code_lines.append(' ]') code_lines.append('\n') code_lines.append('def get_ssz_type_by_name(name: str) -> Container:')