pub fn find_target_pda(
    storage_type: refdb::StorageType,
    target_name: &ArrayString64,
) -> (Pubkey, u8) {
    Pubkey::find_program_address(
        &[storage_type.to_string().as_bytes(), target_name.as_bytes()],
        &main_router::id(),
    )
}
/// Derives the target metadata object address for the given storage type and object name
Derives the target metadata object address for the given storage type and object name
Derives the target metadata object address for the given storage type and object name
pub fn find_target_pda(
    storage_type: refdb::StorageType,
    target_name: &ArrayString64,
) -> (Pubkey, u8) {
    Pubkey::find_program_address(
        &[storage_type.to_string().as_bytes(), target_name.as_bytes()],
        &main_router::id(),
    )
}
pub fn find_target_pda ( storage_type : refdb :: StorageType , target_name : & ArrayString64 , ) -> ( Pubkey , u8 ) { Pubkey :: find_program_address ( & [ storage_type . to_string ( ) . as_bytes ( ) , target_name . as_bytes ( ) ] , & main_router :: id ( ) , ) }
Derives the target metadata object address for the given storage type and object name
Derives the target metadata object address for the given storage type and object name
storage_type
refdb::StorageType
target_name
&ArrayString64
storage_type
refdb::StorageType
target_name
&ArrayString64