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

Commit e2a5785

Browse files
committed
Revert "Revert once SPL updates to Solana 1.8.1"
This reverts commit f5767bb.
1 parent 9acb082 commit e2a5785

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,11 @@
55
use solana_program::{
66
account_info::AccountInfo,
77
entrypoint,
8-
entrypoint::{ProgramResult, HEAP_LENGTH},
8+
entrypoint::{ProgramResult, HEAP_LENGTH, HEAP_START_ADDRESS},
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-
1513
/// Developers can implement their own heap by defining their own
1614
/// `#[global_allocator]`. The following implements a dummy for test purposes
1715
/// but can be flushed out with whatever the developer sees fit.

0 commit comments

Comments
 (0)