Native/builtin programs now receive an InvokeContext
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
use solana_sdk::instruction::InstructionError;
|
||||
use solana_sdk::keyed_account::KeyedAccount;
|
||||
use solana_sdk::pubkey::Pubkey;
|
||||
use solana_sdk::{
|
||||
instruction::InstructionError, keyed_account::KeyedAccount, process_instruction::InvokeContext,
|
||||
pubkey::Pubkey,
|
||||
};
|
||||
|
||||
solana_sdk::declare_program!(
|
||||
"FaiLure111111111111111111111111111111111111",
|
||||
@@ -12,6 +13,7 @@ fn process_instruction(
|
||||
_program_id: &Pubkey,
|
||||
_keyed_accounts: &[KeyedAccount],
|
||||
_data: &[u8],
|
||||
_invoke_context: &mut dyn InvokeContext,
|
||||
) -> Result<(), InstructionError> {
|
||||
Err(InstructionError::Custom(0))
|
||||
}
|
||||
|
Reference in New Issue
Block a user