function resetCtx () {
    // set up context
    setUpCtx();

    // optIn's
    ctx.optInToDAOApp(ctx.proposalLsig.address());
    ctx.optInToDAOApp(ctx.voterA.address);
    ctx.optInToDAOApp(ctx.voterB.address);
    ctx.syncAccounts();

    // add proposal
    ctx.addProposal();

    // deposit & register yes votes (by A)
    ctx.depositVoteToken(ctx.voterA, ctx.depositLsig, 5);
    ctx.vote(ctx.voterA, Vote.YES, ctx.proposalLsigAcc);

    // deposit & register yes votes (by B)
    ctx.depositVoteToken(ctx.voterB, ctx.depositLsig, 7);
    ctx.vote(ctx.voterB, Vote.YES, ctx.proposalLsigAcc);

    // execute proposal
    ctx.executeProposal(ctx.proposalLsigAcc);
  }
// NOTE: contract calls are not involved here
contract calls are not involved here
contract calls are not involved here
function resetCtx () {
    setUpCtx();
    ctx.optInToDAOApp(ctx.proposalLsig.address());
    ctx.optInToDAOApp(ctx.voterA.address);
    ctx.optInToDAOApp(ctx.voterB.address);
    ctx.syncAccounts();
    ctx.addProposal();
    ctx.depositVoteToken(ctx.voterA, ctx.depositLsig, 5);
    ctx.vote(ctx.voterA, Vote.YES, ctx.proposalLsigAcc);
    ctx.depositVoteToken(ctx.voterB, ctx.depositLsig, 7);
    ctx.vote(ctx.voterB, Vote.YES, ctx.proposalLsigAcc);
    ctx.executeProposal(ctx.proposalLsigAcc);
  }
function resetCtx ( ) { setUpCtx ( ) ; ctx . optInToDAOApp ( ctx . proposalLsig . address ( ) ) ; ctx . optInToDAOApp ( ctx . voterA . address ) ; ctx . optInToDAOApp ( ctx . voterB . address ) ; ctx . syncAccounts ( ) ; ctx . addProposal ( ) ; ctx . depositVoteToken ( ctx . voterA , ctx . depositLsig , 5 ) ; ctx . vote ( ctx . voterA , Vote . YES , ctx . proposalLsigAcc ) ; ctx . depositVoteToken ( ctx . voterB , ctx . depositLsig , 7 ) ; ctx . vote ( ctx . voterB , Vote . YES , ctx . proposalLsigAcc ) ; ctx . executeProposal ( ctx . proposalLsigAcc ) ; }
NOTE: contract calls are not involved here
NOTE : contract calls are not involved here
// set up context // optIn's // add proposal // deposit & register yes votes (by A) // deposit & register yes votes (by B) // execute proposal