Function spl_governance::state::proposal_deposit::get_proposal_deposit_data_for_proposal_and_deposit_payer
source · pub fn get_proposal_deposit_data_for_proposal_and_deposit_payer(
program_id: &Pubkey,
proposal_deposit_info: &AccountInfo<'_>,
proposal: &Pubkey,
proposal_deposit_payer: &Pubkey
) -> Result<ProposalDeposit, ProgramError>
Expand description
Deserializes ProposalDeposit account
- Checks owner program and account type
- Asserts it belongs to the given Proposal and deposit Payer