2020-10-28 20:21:50 -07:00
|
|
|
use solana_sdk::{
|
2021-04-19 18:48:48 +02:00
|
|
|
instruction::InstructionError, process_instruction::InvokeContext, pubkey::Pubkey,
|
2020-10-28 20:21:50 -07:00
|
|
|
};
|
2019-11-20 16:32:19 -08:00
|
|
|
|
|
|
|
solana_sdk::declare_program!(
|
|
|
|
"FaiLure111111111111111111111111111111111111",
|
|
|
|
solana_failure_program,
|
|
|
|
process_instruction
|
|
|
|
);
|
|
|
|
|
|
|
|
fn process_instruction(
|
|
|
|
_program_id: &Pubkey,
|
|
|
|
_data: &[u8],
|
2020-10-28 20:21:50 -07:00
|
|
|
_invoke_context: &mut dyn InvokeContext,
|
2019-11-20 16:32:19 -08:00
|
|
|
) -> Result<(), InstructionError> {
|
2020-04-01 09:01:11 -07:00
|
|
|
Err(InstructionError::Custom(0))
|
2019-11-20 16:32:19 -08:00
|
|
|
}
|