|
@@ -1,11 +1,15 @@
|
|
|
use pinocchio::{
|
|
|
- account_info::AccountInfo, heapless_entrypoint, program_error::ProgramError, pubkey::Pubkey,
|
|
|
- ProgramResult,
|
|
|
+ account_info::AccountInfo, default_panic_handler, no_allocator, program_entrypoint,
|
|
|
+ program_error::ProgramError, pubkey::Pubkey, ProgramResult,
|
|
|
};
|
|
|
|
|
|
use crate::processor::*;
|
|
|
|
|
|
-heapless_entrypoint!(process_instruction);
|
|
|
+program_entrypoint!(process_instruction);
|
|
|
+// Do not allocate memory.
|
|
|
+no_allocator!();
|
|
|
+// Use the default panic handler.
|
|
|
+default_panic_handler!();
|
|
|
|
|
|
/// Process an instruction.
|
|
|
///
|