pull/113/head
Neeraj Kashyap 2023-08-08 16:35:02 -07:00
rodzic 0567ce0893
commit 73f2591632
2 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -95,11 +95,11 @@ def normalize_abi_name(name: str) -> str:
def python_type(evm_type: str) -> List[str]: def python_type(evm_type: str) -> List[str]:
if evm_type.endswith("]"): if evm_type.endswith("]") and not evm_type.endswith("][]"):
return ["List"] return ["List"]
if evm_type.startswith(("uint", "int")): if evm_type.startswith(("uint", "int")) and "[" not in evm_type:
return ["int"] return ["int"]
if evm_type.startswith(("int", "int")): if evm_type.startswith(("int", "int")) and "[" not in evm_type:
return ["int"] return ["int"]
elif evm_type.startswith("bytes"): elif evm_type.startswith("bytes"):
return ["bytes"] return ["bytes"]

Wyświetl plik

@ -831,7 +831,7 @@ def generate_cli_generator(
value=cst.parse_expression("eval"), 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. # 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. # This is similar to the way we handle `tuple` arguments.
call_args.append( call_args.append(