From cc52190120790d54c4206d341cf1b6af373aa6c4 Mon Sep 17 00:00:00 2001 From: Jason Schrader Date: Thu, 8 Aug 2024 16:35:31 -0700 Subject: [PATCH] fix: print voter info after successful tx --- contracts/proposals/ccip024-miamicoin-signal-vote.clar | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/contracts/proposals/ccip024-miamicoin-signal-vote.clar b/contracts/proposals/ccip024-miamicoin-signal-vote.clar index b933fbf..8234188 100644 --- a/contracts/proposals/ccip024-miamicoin-signal-vote.clar +++ b/contracts/proposals/ccip024-miamicoin-signal-vote.clar @@ -93,6 +93,11 @@ ) ;; update vote stats for MIA (update-city-votes MIA_ID miaVoteAmount vote true) + ;; print voter info + (print { + notification: "vote-on-ccip-024", + payload: (get-voter-info voterId) + }) (ok true) ) ;; if the voterRecord does not exist @@ -109,6 +114,11 @@ }) ERR_SAVING_VOTE) ;; update vote stats for MIA (update-city-votes MIA_ID miaVoteAmount vote false) + ;; print voter info + (print { + notification: "vote-on-ccip-024", + payload: (get-voter-info voterId) + }) (ok true) ) )