@@ -183,7 +183,7 @@ def _update_constant_vars_with_kzg_setups(constant_vars, preset_name):
183183 constant_vars ['KZG_SETUP_G1_MONOMIAL' ] = VariableDefinition (constant_vars ['KZG_SETUP_G1_MONOMIAL' ].value , str (kzg_setups [0 ]), comment , None )
184184 constant_vars ['KZG_SETUP_G1_LAGRANGE' ] = VariableDefinition (constant_vars ['KZG_SETUP_G1_LAGRANGE' ].value , str (kzg_setups [1 ]), comment , None )
185185 constant_vars ['KZG_SETUP_G2_MONOMIAL' ] = VariableDefinition (constant_vars ['KZG_SETUP_G2_MONOMIAL' ].value , str (kzg_setups [2 ]), comment , None )
186-
186+
187187
188188def get_spec (file_name : Path , preset : Dict [str , str ], config : Dict [str , str ], preset_name = str ) -> SpecObject :
189189 functions : Dict [str , str ] = {}
@@ -261,10 +261,17 @@ def get_spec(file_name: Path, preset: Dict[str, str], config: Dict[str, str], pr
261261 # marko parses `**X**` as a list containing a X
262262 description = description [0 ].children
263263
264+ if isinstance (name , list ):
265+ # marko parses `[X]()` as a list containing a X
266+ name = name [0 ].children
264267 if isinstance (value , list ):
265268 # marko parses `**X**` as a list containing a X
266269 value = value [0 ].children
267270
271+ # Skip types that have been defined elsewhere
272+ if description is not None and description .startswith ("<!-- predefined-type -->" ):
273+ continue
274+
268275 if not _is_constant_id (name ):
269276 # Check for short type declarations
270277 if value .startswith (("uint" , "Bytes" , "ByteList" , "Union" , "Vector" , "List" , "ByteVector" )):
@@ -569,7 +576,7 @@ def run(self):
569576 RUAMEL_YAML_VERSION ,
570577 "lru-dict==1.2.0" ,
571578 MARKO_VERSION ,
572- "py_arkworks_bls12381==0.3.4 " ,
573- "curdleproofs==0.1.1 " ,
579+ "py_arkworks_bls12381==0.3.8 " ,
580+ "curdleproofs==0.1.2 " ,
574581 ]
575582)
0 commit comments