diff --git a/programs/voting.ts b/programs/voting.ts index d19b881..5d6eb50 100644 --- a/programs/voting.ts +++ b/programs/voting.ts @@ -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')