Skip to content

Commit

Permalink
Revert "Revert once SPL updates to Solana 1.8.1"
Browse files Browse the repository at this point in the history
This reverts commit f5767bb.
  • Loading branch information
mvines committed Oct 21, 2021
1 parent 9acb082 commit e2a5785
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/rust/custom-heap/src/entrypoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit e2a5785

Please sign in to comment.