Skip to content

Commit

Permalink
Revert once SPL updates to Solana 1.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines committed Oct 13, 2021
1 parent 18543cf commit 647129c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/rust/custom-heap/src/entrypoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 647129c

Please sign in to comment.