This commit is contained in:
Richard Ramos 2018-07-12 11:26:02 -04:00
parent 6f93a335ab
commit c11406c615
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ EmbarkJS.onReady(async (err) => {
const numPolls = await nPolls().call();
const polls = [];
for (let i = numPolls - 1; i >= 0; i--) {
for (let i = 0; i < numPolls; i++) {
const p = await poll(i).call();
console.log(`_polls[${i}] = Poll({canceled: ${p._canceled}, description: "${p._description}", startBlock: ${p._startBlock}, endBlock: ${p._endBlock}, qvResults: ${p._qvResults}, results: ${p._results}, voters: ${p._voters}});`);