#[derive(Accounts)] #[instruction(poll_id: u64)] pub struct InitializeCandidate<'info> { #[account(mut)] pub signer: Signer<'info>,
#[account(
mut,
seeds = [b"poll".as_ref(), poll_id.to_le_bytes().as_ref()],
bump
)]
pub poll_account: Account<'info, PollAccount>,
#[account(
init,
payer = signer,
space = 8 + CandidateAccount::INIT_SPACE,
seeds = [poll_id.to_le_bytes().as_ref(), poll_account.poll_option_index.to_le_bytes().as_ref()],
bump
)]
pub candidate_account: Account<'info, CandidateAccount>,
pub system_program: Program<'info, System>,
} Please help out with this
Full Code here👇 https://github.com/Josh0007-sunday/voteDao.git