I have a table with some secondary indices. I want to iterate through the rows whose values are
act >= 1 and discard the rest.
table holders(_self, _self.value); auto index_by_act = holders.get_index<"byact"_n>(); for (auto i = index_by_act.lower_bound(1); i != index_by_act.end(); i++)
This still iterates over the rows with 0 value. If I get the same command with cleos:
cleos get table --index 3 --key-type i64 -L 1 contract contract table
I get the right list (no rows with
act > 0). So I must be doing something wrong and I don't understand what exactly.
Can someone help me?
Thank you very much!