From e2a5785ad7f0700f400198ef630130bd3db6277a Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Wed, 20 Oct 2021 22:21:01 -0700 Subject: [PATCH] Revert "Revert once SPL updates to Solana 1.8.1" This reverts commit f5767bb3e209b591c657ad5732ff854c635292a4. --- examples/rust/custom-heap/src/entrypoint.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/rust/custom-heap/src/entrypoint.rs b/examples/rust/custom-heap/src/entrypoint.rs index 60a65022363..911619f22df 100644 --- a/examples/rust/custom-heap/src/entrypoint.rs +++ b/examples/rust/custom-heap/src/entrypoint.rs @@ -5,13 +5,11 @@ use solana_program::{ account_info::AccountInfo, entrypoint, - entrypoint::{ProgramResult, HEAP_LENGTH}, + entrypoint::{ProgramResult, HEAP_LENGTH, HEAP_START_ADDRESS}, pubkey::Pubkey, }; use std::{alloc::Layout, mem::size_of, ptr::null_mut, usize}; -const HEAP_START_ADDRESS: u64 = 0x300000000; - /// Developers can implement their own heap by defining their own /// `#[global_allocator]`. The following implements a dummy for test purposes /// but can be flushed out with whatever the developer sees fit.