Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

eosio multi index secondary index

voting::identity_index identities(_self, _self.value);
auto idx = identities.get_index<"byhash"_n>();
auto itr = idx.find(out);
eosio_assert(itr == identities.end(), "User already registered to vote!");
Source by eosio.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #eosio #multi #index #secondary #index
ADD COMMENT
Topic
Name
8+9 =