Using the command to call a contract function that takes a string array of values as arguments to a set function returns the error: ValueError: cannot convert array type 'string[]' from string.
If calling a get function that returns an array of values, then there is no problem.
Example:
#set errors
$ aut contract call --rpc_endpoint = <CONNECTED_NODE_URI> --address <CONTRACT_ADDRESS> --abi <PATH_TO_CONTRACT_ABI_FILE> setValues ["A", "B", "C", "D"]
ValueError: cannot convert array type 'string[]' from string
# get returns
$ aut contract call --rpc_endpoint = <CONNECTED_NODE_URI> --address <CONTRACT_ADDRESS> --abi <PATH_TO_CONTRACT_ABI_FILE> getValues
["A", "B", "C", "D"]
Context:
Using the command to call a contract function that takes a string array of values as arguments to a
set
function returns the error:ValueError: cannot convert array type 'string[]' from string
.If calling a
get
function that returns an array of values, then there is no problem.Example: