eosio.cdt icon indicating copy to clipboard operation
eosio.cdt copied to clipboard

Internal error when using webauthn_public_key in table

Open smlu opened this issue 3 years ago • 4 comments

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; }
};

smlu avatar Mar 22 '21 21:03 smlu

What version of cdt and OS are you using?

sanaraufx avatar Mar 24 '21 17:03 sanaraufx

I'm using Ubuntu over Windows WSL 2 and eosio.cdt on develop branch.

smlu avatar Mar 24 '21 21:03 smlu

Note, it compiles if I use eosio::public_key type instead.

smlu avatar Mar 24 '21 21:03 smlu

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.

smlu avatar Apr 05 '21 19:04 smlu