eosio.cdt
eosio.cdt copied to clipboard
Internal error when using webauthn_public_key in table
I'm getting eosio tool internal error
when trying to compile following eosio::table struct:
struct [[eosio::table]] some_struct {
eosio::name some_name;
eosio::webauthn_public_key key;
uint64_t primary_key() const { return some_name.value; }
};
What version of cdt and OS are you using?
I'm using Ubuntu over Windows WSL 2 and eosio.cdt on develop branch.
Note, it compiles if I use eosio::public_key
type instead.
After some more investigation I'm firmly confident that the compiler error most likely occurs due to alias ecc_public_key is of type std::array
. If I change the type to std::vector<uint8_t>
it compiles.