Porównaj commity

...

4 Commity

Autor SHA1 Wiadomość Data
Neeraj Kashyap 9f9f772092
Merge pull request #123 from moonstream-to/fix-tuple-array-parser
Fixing the tuple array parsing. Now type=eval is included
2024-04-09 10:13:59 -07:00
Neeraj Kashyap 954b100b79 Bumped version to 0.9.0 2024-04-09 10:13:04 -07:00
Neeraj Kashyap 6e930cb7d8 Fixed black formatting 2024-04-09 10:12:30 -07:00
Uriel Chami aa2bd285bf Fixing the tuple array parsing. Now type=eval is included 2024-04-09 13:10:36 -03:00
3 zmienionych plików z 9 dodań i 1 usunięć

Wyświetl plik

@ -3,6 +3,7 @@ Allows users to inspect the conditions under which a smart contract was deployed
The entrypoint for this functionality is [`find_deployment_block`][moonworm.deployment.find_deployment_block].
"""
import logging
import os
import time

Wyświetl plik

@ -839,6 +839,13 @@ def generate_cli_generator(
value=cst.parse_expression("eval"),
),
)
elif param["type"] == "tuple[]":
call_args.append(
cst.Arg(
keyword=cst.Name(value="type"),
value=cst.parse_expression("eval"),
),
)
elif param["type"] == "Any":
# In general case, we just use a Python `eval` to parse the input from the command line.
# This is similar to the way we handle `tuple` arguments.

Wyświetl plik

@ -1 +1 @@
MOONWORM_VERSION = "0.8.0"
MOONWORM_VERSION = "0.9.0"