Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Commit 7eb7bb1

Browse files
committed
Update git dependency
1 parent 229d8f6 commit 7eb7bb1

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

program/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ publish = false
1111
program-id = "PToken1111111111111111111111111111111111111"
1212

1313
[lib]
14-
crate-type = ["cdylib", "lib"]
14+
crate-type = ["cdylib"]
1515

1616
[features]
1717
logging = []

program/src/entrypoint.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
use pinocchio::{
2-
account_info::AccountInfo, heapless_entrypoint, program_error::ProgramError, pubkey::Pubkey,
3-
ProgramResult,
2+
account_info::AccountInfo, default_panic_handler, no_allocator, program_entrypoint,
3+
program_error::ProgramError, pubkey::Pubkey, ProgramResult,
44
};
55

66
use crate::processor::*;
77

8-
heapless_entrypoint!(process_instruction);
8+
program_entrypoint!(process_instruction);
9+
// Do not allocate memory.
10+
no_allocator!();
11+
// Use the default panic handler.
12+
default_panic_handler!();
913

1014
/// Process an instruction.
1115
///

0 commit comments

Comments
 (0)