Skip to content

Commit

Permalink
feat: vote time
Browse files Browse the repository at this point in the history
  • Loading branch information
avsetsin committed Oct 23, 2023
1 parent 8530b39 commit c56d47e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions programs/voting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ voting
logger.log('Vote', vote.toObject());
});

voting
.command('vote-time')
.description('returns vote time')
.action(async () => {
const time = await votingContract.voteTime();
logger.log('Vote time in seconds', Number(time));
});

voting
.command('votes')
.description('returns votes length')
Expand Down

0 comments on commit c56d47e

Please sign in to comment.