Hot answers tagged

3

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


1

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 ...


1

You can use the available_primary_key() function that belongs to multi index arrays: a.id = 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