From 647129c612aaae3441ea2c27a40c30f44df36ca3 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Wed, 13 Oct 2021 12:11:41 -0700 Subject: [PATCH] Revert once SPL updates to Solana 1.8.1 --- examples/rust/custom-heap/src/entrypoint.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/rust/custom-heap/src/entrypoint.rs b/examples/rust/custom-heap/src/entrypoint.rs index 911619f22df..60a65022363 100644 --- a/examples/rust/custom-heap/src/entrypoint.rs +++ b/examples/rust/custom-heap/src/entrypoint.rs @@ -5,11 +5,13 @@ use solana_program::{ account_info::AccountInfo, entrypoint, - entrypoint::{ProgramResult, HEAP_LENGTH, HEAP_START_ADDRESS}, + entrypoint::{ProgramResult, HEAP_LENGTH}, 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.