Merge branch 'master' into spencer/refactor-cic-dependencies
This commit is contained in:
commit
48ba01e224
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user