Merge pull request #123 from moonstream-to/fix-tuple-array-parser

Fixing the tuple array parsing. Now type=eval is included
main v0.9.0
Neeraj Kashyap 2024-04-09 10:13:59 -07:00 zatwierdzone przez GitHub
commit 9f9f772092
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
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"