difftreelog
fix wait for proposal to pass
in: master
1 file changed
tests/src/util/playgrounds/unique.dev.tsdiffbeforeafterboth635 // <<< Fast track proposal through technical committee <<<635 // <<< Fast track proposal through technical committee <<<636636637 const refIndexField = 0;637 const refIndexField = 0;638 const referendumIndex = await this.helper.wait.eventData<any>(3, 'democracy', 'Started', refIndexField);638 const referendumIndex = await this.helper.wait.eventData<number>(3, 'democracy', 'Started', refIndexField);639639640 // >>> Referendum voting >>>640 // >>> Referendum voting >>>641 console.log(`\t* Referendum #${referendumIndex} voting.......`);641 console.log(`\t* Referendum #${referendumIndex} voting.......`);642 await this.helper.democracy.referendumVote(dorothyAccount, referendumIndex, {642 await this.helper.democracy.referendumVote(dorothyAccount, referendumIndex!, {643 balance: 10_000_000_000_000_000_000n,643 balance: 10_000_000_000_000_000_000n,644 vote: {aye: true, conviction: 1},644 vote: {aye: true, conviction: 1},645 });645 });646 console.log(`\t* Referendum #${referendumIndex} voting.......DONE`);646 console.log(`\t* Referendum #${referendumIndex} voting.......DONE`);647 // <<< Referendum voting <<<647 // <<< Referendum voting <<<648648649 // Wait for the democracy execute649 // Wait the proposal to pass650 await this.helper.wait.event(3, 'democracy', 'Passed');650 await this.helper.wait.newBlocks(5);651 await this.helper.wait.newBlocks(1);651652652 console.log(`[democracy] executing '${proposalDesciption}' proposal.......DONE`);653 console.log(`[democracy] executing '${proposalDesciption}' proposal.......DONE`);653 }654 }