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:
2018-04-10 16:29:18 +02:00
parent 72c6266474
commit e24fc6c81d
+1 -1
View File
@@ -13,7 +13,7 @@ export default class Operator extends Base {
count = count.toNumber();
let proposals = [];
for (let id = 0; id < count; id++) {
for (let id = 1; id <= count; id++) {
proposals.push(this.getById(id));
}