diff --git a/src/app/_eth/accountIndex.ts b/src/app/_eth/accountIndex.ts index bc861e8..564479f 100644 --- a/src/app/_eth/accountIndex.ts +++ b/src/app/_eth/accountIndex.ts @@ -34,7 +34,7 @@ export class AccountIndex { lowest = 0; } const accounts: Array = []; - 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); }