Merge branch 'master' into spencer/refactor-cic-dependencies

This commit is contained in:
Spencer Ofwiti 2021-06-07 18:54:13 +03:00
commit 48ba01e224
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -6,7 +6,7 @@ HttpGetter.prototype.get = (filename) =>
new Promise((resolve, reject) => { new Promise((resolve, reject) => {
fetch(filename).then((response) => { fetch(filename).then((response) => {
if (response.ok) { if (response.ok) {
resolve(response.json()); resolve(response.text());
} else { } else {
reject(rejectBody(response)); reject(rejectBody(response));
} }