Skip to content

Commit

Permalink
Update governance PDA helper
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrena-Corto committed Nov 2, 2024
1 parent 675f834 commit 2b685b7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/pda.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,15 +226,14 @@ pub fn get_realm_config_pda(realm: &Pubkey) -> Pubkey {
}

/// Returns TokenOwnerRecord PDA address
pub fn get_token_owner_record_address(
program_id: &Pubkey,
pub fn get_token_owner_record_pda(
realm: &Pubkey,
governing_token_mint: &Pubkey,
governing_token_owner: &Pubkey,
) -> Pubkey {
Pubkey::find_program_address(
&get_token_owner_record_address_seeds(realm, governing_token_mint, governing_token_owner),
program_id,
&GOVERNANCE_PROGRAM_ID,
)
.0
}

0 comments on commit 2b685b7

Please sign in to comment.