kopia lustrzana https://github.com/bugout-dev/moonworm
Fixed code
rodzic
0567ce0893
commit
73f2591632
|
|
@ -95,11 +95,11 @@ def normalize_abi_name(name: str) -> str:
|
|||
|
||||
|
||||
def python_type(evm_type: str) -> List[str]:
|
||||
if evm_type.endswith("]"):
|
||||
if evm_type.endswith("]") and not evm_type.endswith("][]"):
|
||||
return ["List"]
|
||||
if evm_type.startswith(("uint", "int")):
|
||||
if evm_type.startswith(("uint", "int")) and "[" not in evm_type:
|
||||
return ["int"]
|
||||
if evm_type.startswith(("int", "int")):
|
||||
if evm_type.startswith(("int", "int")) and "[" not in evm_type:
|
||||
return ["int"]
|
||||
elif evm_type.startswith("bytes"):
|
||||
return ["bytes"]
|
||||
|
|
|
|||
|
|
@ -831,7 +831,7 @@ def generate_cli_generator(
|
|||
value=cst.parse_expression("eval"),
|
||||
),
|
||||
)
|
||||
else:
|
||||
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.
|
||||
call_args.append(
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue