Skip to main content

check_collection

Function check_collection 

Source
pub fn check_collection(
    tasks: &mut Tasks,
    collection_index: u8,
) -> Result<(bool, u64), ProgramError>
Expand description

Check collection task using cached counts. Mutates tasks.collection_claimed. Returns (completed, reward). collection_index = element×5+rarity (0–24).