I have a simple enum (or enum class, neither one is working )
enum vote_option {
upvote = 0,
downvote
and a table which will store a value of that enum type.
struct [[eosio::table]] poll
{
uint64_t key;
vote_option opt;
uint64_t primary_key() const { return key; }
};
And the problem is the build is fine, but when I even get table
I've got
Error 3015004: The type defined in the ABI is invalid
Error Details:
vote_option
Has anyone experienced this kind of problem ?
I use eosio.cdt v 1.6.2
and eosio v1.8.4
.