encointer / explorer

explore the encointer network, browse local communitities an monitor populations
GNU General Public License v3.0
1 stars 1 forks source link

Fix reputables count #122

Closed clangenb closed 1 year ago

clangenb commented 1 year ago

Closes #117.

There were multiple issues:

  1. The keys() getter of the storage map does not return the account id itself but the full key, which prevented making a set out of it: https://polkadot.js.org/docs/api/start/api.query.other/#map-keys--entries
  2. JavaScript objects are only equal if they point to the same reference.

The current count in the explorer is now 95 for the Zurich community (compared to the 85 that were in @brenzi's gist), which is plausible as a few newbies might have got reputation now:

image