You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In EOSIO ABI generation, std::vector<TYPE> is generally translated into TYPE[] that means contiguous repeat of TYPE, but std::vector specialization for uint8_t, int8_t, char, unsigned char are treated special by being translated into bytes that accepts hex string and convert it into byte sequence.
Since c++17, new type std::byte is supported for storing & accessing byte. Let's translate std::vector<std::byte> into bytes also.
In EOSIO ABI generation,
std::vector<TYPE>is generally translated intoTYPE[]that means contiguous repeat of TYPE, butstd::vectorspecialization foruint8_t, int8_t, char, unsigned charare treated special by being translated intobytesthat accepts hex string and convert it into byte sequence.Since c++17, new type
std::byteis supported for storing & accessing byte. Let's translatestd::vector<std::byte>intobytesalso.You can start from:
https://github.com/turnpike/blanc/blob/bebefb3d/tools/include/eosio/gen.hpp#L533-L534