Hot answers tagged


You should have #include <numeric> to use std::gcd in your code.


I manage to find the solution. I use struct in the struct as follows. struct certificateinfo{ string serialNumber; string issuer; }; struct ownerinfo{ string name; certificateinfo certificate; }; struct [[eosio::table]] ipdoctable { uint64_t id; string creationDate; string contentType; string type; ownerinfo ...


You can use the available_primary_key() function that belongs to multi index arrays: = names.available_primary_key() This gets an incrementally larger primary key than the previous highest key

Only top voted, non community-wiki answers of a minimum length are eligible