Merge branch 'spencer/account-index-fix' into 'master'

Fix account index.

See merge request grassrootseconomics/cic-staff-client!24
This commit is contained in:
Blair Vanderlugt 2021-05-18 14:56:06 +00:00
commit 57cc5609a7

View File

@ -34,7 +34,7 @@ export class AccountIndex {
lowest = 0;
}
const accounts: Array<string> = [];
for (let i = count; i > lowest; i--) {
for (let i = count - 1; i >= lowest; i--) {
const account: string = await this.contract.methods.entry(i).call();
accounts.push(account);
}