Skip to content

Commit

Permalink
Update src/erc7730/model/paths/path_schemas.py
Browse files Browse the repository at this point in the history
  • Loading branch information
fsamier committed Jan 22, 2025
1 parent a1ada44 commit f13fe82
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/erc7730/model/paths/path_schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@ def to_schema(element: DataPathElement) -> DataPathElement | None:
return f
case Array() | ArrayElement():
return Array()
case ArraySlice(): # Array slice only valid on bytes / primitive types, not on structs
# TODO: Spec also allows slicing on array type, but for now it is only used on primitive types
case ArraySlice():
return None
case _:
assert_never(element)
Expand Down

0 comments on commit f13fe82

Please sign in to comment.