Fix account index.

This commit is contained in:
Spencer Ofwiti 2021-05-18 17:53:29 +03:00
parent 51f4f052c7
commit a16e8c9242

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);
}