From 2b685b71a42f29d1dacadbcb283d77039dd186f2 Mon Sep 17 00:00:00 2001 From: Corto Date: Sat, 2 Nov 2024 13:06:53 +0800 Subject: [PATCH] Update governance PDA helper --- src/pda.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/pda.rs b/src/pda.rs index 0d3e433..6e70bee 100644 --- a/src/pda.rs +++ b/src/pda.rs @@ -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 }