From c56d47e5049bbbd6579208d5541d58441436ecf2 Mon Sep 17 00:00:00 2001 From: George Avsetsin Date: Mon, 23 Oct 2023 18:42:28 +0300 Subject: [PATCH] feat: vote time --- programs/voting.ts | 8 ++++++++ 1 file changed, 8 insertions(+) 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')