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

Commit 647129c

Browse files
committed
Revert once SPL updates to Solana 1.8.1
1 parent 18543cf commit 647129c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/rust/custom-heap/src/entrypoint.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55
use solana_program::{
66
account_info::AccountInfo,
77
entrypoint,
8-
entrypoint::{ProgramResult, HEAP_LENGTH, HEAP_START_ADDRESS},
8+
entrypoint::{ProgramResult, HEAP_LENGTH},
99
pubkey::Pubkey,
1010
};
1111
use std::{alloc::Layout, mem::size_of, ptr::null_mut, usize};
1212

13+
const HEAP_START_ADDRESS: u64 = 0x300000000;
14+
1315
/// Developers can implement their own heap by defining their own
1416
/// `#[global_allocator]`. The following implements a dummy for test purposes
1517
/// but can be flushed out with whatever the developer sees fit.

0 commit comments

Comments
 (0)