kopia lustrzana https://github.com/bugout-dev/moonworm
Merge pull request #123 from moonstream-to/fix-tuple-array-parser
Fixing the tuple array parsing. Now type=eval is includedmain v0.9.0
commit
9f9f772092
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -1 +1 @@
|
|||
MOONWORM_VERSION = "0.8.0"
|
||||
MOONWORM_VERSION = "0.9.0"
|
||||
|
|
Ładowanie…
Reference in New Issue