pub fn require_program(
info: &AccountView,
key: &Address,
label: &str,
) -> Result<(), ProgramError>Expand description
Errors if:
- Address does not match the expected value.
- Account is not executable.
pub fn require_program(
info: &AccountView,
key: &Address,
label: &str,
) -> Result<(), ProgramError>Errors if: