From a16e8c924297fc71e95e3a28d299b924762bac4c Mon Sep 17 00:00:00 2001 From: Spencer Ofwiti Date: Tue, 18 May 2021 17:53:29 +0300 Subject: [PATCH 1/2] Fix account index. --- src/app/_eth/accountIndex.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } From ecd9d72124198b6439da2a38893c4fcda04e30c2 Mon Sep 17 00:00:00 2001 From: Spencer Ofwiti Date: Tue, 18 May 2021 18:04:20 +0300 Subject: [PATCH 2/2] Fix http getter return format. --- src/app/_helpers/http-getter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/_helpers/http-getter.ts b/src/app/_helpers/http-getter.ts index 4c1719e..d4c253f 100644 --- a/src/app/_helpers/http-getter.ts +++ b/src/app/_helpers/http-getter.ts @@ -6,7 +6,7 @@ HttpGetter.prototype.get = (filename) => new Promise((resolve, reject) => { fetch(filename).then((response) => { if (response.ok) { - resolve(response.json()); + resolve(response.text()); } else { reject(rejectBody(response)); }