From ecbdab59de16b730e91644e38c0f5204e66e961c Mon Sep 17 00:00:00 2001 From: casiojapi Date: Mon, 16 Sep 2024 18:05:30 -0300 Subject: [PATCH] fix public_inputs types on from_dict() signature --- .../starknet/groth16_contract_generator/parsing_utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hydra/garaga/starknet/groth16_contract_generator/parsing_utils.py b/hydra/garaga/starknet/groth16_contract_generator/parsing_utils.py index 36886c90..93134f7a 100644 --- a/hydra/garaga/starknet/groth16_contract_generator/parsing_utils.py +++ b/hydra/garaga/starknet/groth16_contract_generator/parsing_utils.py @@ -312,7 +312,9 @@ def __post_init__(self): ), f"All points must be on the same curve, got {self.a.curve_id}, {self.b.curve_id}, {self.c.curve_id}" self.curve_id = self.a.curve_id - def from_dict(data: dict, public_inputs: str) -> "Groth16Proof": + def from_dict( + data: dict, public_inputs: None | list | dict = None + ) -> "Groth16Proof": curve_id = try_guessing_curve_id_from_json(data) try: proof = find_item_from_key_patterns(data, ["proof"])