Collects all parametric occurrences and the construction of keyed_accounts and puts them into InvokeContext.
18 lines
434 B
Rust
18 lines
434 B
Rust
use solana_sdk::{
|
|
instruction::InstructionError, process_instruction::InvokeContext, pubkey::Pubkey,
|
|
};
|
|
|
|
solana_sdk::declare_program!(
|
|
"FaiLure111111111111111111111111111111111111",
|
|
solana_failure_program,
|
|
process_instruction
|
|
);
|
|
|
|
fn process_instruction(
|
|
_program_id: &Pubkey,
|
|
_data: &[u8],
|
|
_invoke_context: &mut dyn InvokeContext,
|
|
) -> Result<(), InstructionError> {
|
|
Err(InstructionError::Custom(0))
|
|
}
|