haderech/eoscc

Failed to deserialize eosio::public_key

Closed this issue · 0 comments

Unlike eosio.cdt, eoscc supports a fixed-size array in action parameters. It serializes the length of array and its data like std::vector.

In eosio.cdt, eosio::public_key now uses eosio::ecc_public_key as an alias of std::array<char,32> and eosio::chain::abi_serializer of libchain will not include the length of data in public_key serialization. This makes wasm generated by eoscc will fail when it has eosio::public_key in action parameters or fields of multi_index table.