Skip to content

Conversation

baiwfg2
Copy link

@baiwfg2 baiwfg2 commented Jul 1, 2025

Some descriptions in comments are my current understanding. Correct me if not quite right.

@@ -98,10 +108,11 @@ pub struct Vote<'info> {
pub poll_account: Account<'info, PollAccount>,

#[account(
mut,
mut, // Vote() will modify a given candidate
Copy link
Author

Choose a reason for hiding this comment

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

I think this should be emphasized. The original code in video also made such a mistake.

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.

1 participant