Skip to content

Commit

Permalink
Release 0.62.0. References #212
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankC01 committed Jun 7, 2024
1 parent 534db3e commit 610662e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pysui/sui/sui_pgql/pgql_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1347,8 +1347,8 @@ class MoveModuleGQL:
"""Sui MoveModule representation."""

module_name: str
module_structures: Optional[MoveStructuresGQL]
module_functions: Optional[MoveFunctionsGQL]
module_structures: Union[MoveStructuresGQL, list]
module_functions: Union[MoveFunctionsGQL, list]

@classmethod
def from_query(clz, in_data: dict) -> "MoveModuleGQL":
Expand All @@ -1360,7 +1360,6 @@ def from_query(clz, in_data: dict) -> "MoveModuleGQL":
fdict["module_structures"] = []
if "function_list" in fdict:
fdict["module_functions"] = []
# fdict["module_structures"] = fdict.get("module_structures", [])
fdict["module_structures"] = MoveStructuresGQL.from_query(
{"nodes": fdict["module_structures"]}
)
Expand Down

0 comments on commit 610662e

Please sign in to comment.