pub fn find_target_pda_with_bump(
    storage_type: refdb::StorageType,
    target_name: &ArrayString64,
    bump: u8,
) -> Result<Pubkey, ProgramError> {
    Pubkey::create_program_address(
        &[
            storage_type.to_string().as_bytes(),
            target_name.as_bytes(),
            &[bump],
        ],
        &main_router::id(),
    )
    .map_err(|_| ProgramError::InvalidSeeds)
}
/// Returns the target metadata object address for the given storage type, object name, and bump
Returns the target metadata object address for the given storage type, object name, and bump
Returns the target metadata object address for the given storage type object name and bump
pub fn find_target_pda_with_bump(
    storage_type: refdb::StorageType,
    target_name: &ArrayString64,
    bump: u8,
) -> Result<Pubkey, ProgramError> {
    Pubkey::create_program_address(
        &[
            storage_type.to_string().as_bytes(),
            target_name.as_bytes(),
            &[bump],
        ],
        &main_router::id(),
    )
    .map_err(|_| ProgramError::InvalidSeeds)
}
pub fn find_target_pda_with_bump ( storage_type : refdb :: StorageType , target_name : & ArrayString64 , bump : u8 , ) -> Result < Pubkey , ProgramError > { Pubkey :: create_program_address ( & [ storage_type . to_string ( ) . as_bytes ( ) , target_name . as_bytes ( ) , & [ bump ] , ] , & main_router :: id ( ) , ) . map_err ( | _ | ProgramError :: InvalidSeeds ) }
Returns the target metadata object address for the given storage type, object name, and bump
Returns the target metadata object address for the given storage type object name and bump
storage_type
refdb::StorageType
target_name
&ArrayString64
bump
u8
storage_type
refdb::StorageType
target_name
&ArrayString64
bump
u8