Unable to decode optional vector
Author: jnordbergCreated May 11, 2021Updated May 24, 2022
Labelsbugtrack-in-jira
The following is valid code according to eosio-cpp and compiles and executes fine but nodeos chokes when trying to use the ABI generated
using namespace std;
[[eosio::action]] void foo(optional<vector<string>> accounts) { .. }Error 3015004: The type defined in the ABI is invalid
Error Details:
string[]?
Stack Trace:
abi_serializer.cpp:288 validate
abi_serializer.cpp:289 validate
abi_serializer.cpp:290 validateSource: EOSIO/eos