Skip to content

Commit

Permalink
fix: print voter info after successful tx
Browse files Browse the repository at this point in the history
  • Loading branch information
whoabuddy committed Aug 8, 2024
1 parent a60e23c commit cc52190
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions contracts/proposals/ccip024-miamicoin-signal-vote.clar
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
)
)
Expand Down

0 comments on commit cc52190

Please sign in to comment.