Merge branch 'spencer/account-index-fix' into 'master'
Fix account index. See merge request grassrootseconomics/cic-staff-client!24
This commit is contained in:
commit
57cc5609a7
@ -34,7 +34,7 @@ export class AccountIndex {
|
|||||||
lowest = 0;
|
lowest = 0;
|
||||||
}
|
}
|
||||||
const accounts: Array<string> = [];
|
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();
|
const account: string = await this.contract.methods.entry(i).call();
|
||||||
accounts.push(account);
|
accounts.push(account);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user