eos icon indicating copy to clipboard operation
eos copied to clipboard

Unable to decode optional vector

Open jnordberg opened this issue 4 years ago • 0 comments
trafficstars

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 validate

jnordberg avatar May 11 '21 02:05 jnordberg