Skip to content

Commit

Permalink
fix: print voter info after succesful vote
Browse files Browse the repository at this point in the history
  • Loading branch information
whoabuddy committed Aug 7, 2024
1 parent 212c65a commit 2840622
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions contracts/proposals/ccip019-pox-4-stacking.clar
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@
)
;; update vote stats for each city
(update-city-votes MIA_ID miaVoteAmount vote true)
;; print voter info
(print {
notification: "vote-on-ccip-019",
payload: (get-voter-info voterId)
})
(ok true)
)
;; if the voterRecord does not exist
Expand All @@ -137,6 +142,11 @@
}) ERR_SAVING_VOTE)
;; update vote stats for each city
(update-city-votes MIA_ID miaVoteAmount vote false)
;; print voter info
(print {
notification: "vote-on-ccip-019",
payload: (get-voter-info voterId)
})
(ok true)
)
)
Expand Down

0 comments on commit 2840622

Please sign in to comment.