I need to pass a list of integers to an action. It would be fine to use vectors or arrays, but I can't find one that works. Using vector in the smart contract compiles fine, but then I get this error when I invoke in cleos this way:
cleos push action mycontract myaction '{"player_cards":[3, 4, 5, 6]}' -p mycontract
I get this error:
2018-10-07T04:25:26.099 thread-0 http_plugin.cpp:476 handle_exception ] Exception Details: 3050000 action_validate_exception: Action validate exception
Unknown action myaction in contract mycontract
{"action":"myaction","contract":"mycontract"}
thread-0 chain_plugin.cpp:1564 abi_json_to_bin
code: mycontract, action: myaction, args: {"player_cards":[3,4,5,6]}
{"code":"mycontract","action":"myaction","args":{"player_cards":[3,4,5,6]}}
thread-0 chain_plugin.cpp:1575 abi_json_to_bin