Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update vote event #708

Conversation

Jeongseup
Copy link

Description

I thought verifier's vote should fire vote status about voting for poll_id. I'm not sure this implement is good or not. but I want to suggest add a event vote status.

@Jeongseup Jeongseup requested a review from a team as a code owner November 21, 2024 08:59
@Jeongseup
Copy link
Author

Currently, we can the vote status in only the tx message section.

@@ -259,6 +268,7 @@ impl From<Voted> for Event {
serde_json::to_string(&other.poll_id).expect("failed to serialize poll_id"),
)
.add_attribute("voter", other.voter)
.add_attribute("votes", votes_to_string(other.votes))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.add_attribute("votes", votes_to_string(other.votes))
.add_attribute("votes", serde_json::to_string(&votes).expect("failed to serialize votes"))

@fish-sammy
Copy link
Collaborator

#732

@fish-sammy fish-sammy closed this Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants