Fix proposal loading
we changed the storage of proposals from an array to a mapping. Because of this keys/ids now no longer start with zero but with 1.
This commit is contained in:
@@ -13,7 +13,7 @@ export default class Operator extends Base {
|
|||||||
count = count.toNumber();
|
count = count.toNumber();
|
||||||
let proposals = [];
|
let proposals = [];
|
||||||
|
|
||||||
for (let id = 0; id < count; id++) {
|
for (let id = 1; id <= count; id++) {
|
||||||
proposals.push(this.getById(id));
|
proposals.push(this.getById(id));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user