Skip to content

Commit

Permalink
Update starknet_py/utils/typed_data.py
Browse files Browse the repository at this point in the history
Co-authored-by: ddoktorski <45050160+ddoktorski@users.noreply.github.com>
  • Loading branch information
franciszekjob and ddoktorski authored Jul 5, 2024
1 parent 7f5798f commit 0085160
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions starknet_py/utils/typed_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,7 @@ def _verify_types(self):
referenced_types = set()
for type_name in self.types:
for ref_type in self.types[type_name]:
if isinstance(ref_type, MerkleTreeParameter):
referenced_types.add(ref_type.contains)
elif isinstance(ref_type, EnumParameter):
if isinstance(ref_type, (EnumParameter, MerkleTreeParameter)):
referenced_types.add(ref_type.contains)
elif is_enum_variant_type(ref_type.type):
referenced_types.update(_extract_enum_types(ref_type.type))
Expand Down

0 comments on commit 0085160

Please sign in to comment.