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

Commit 1277be9

Browse files
committed
fix stack frame violation
1 parent 3acbbd4 commit 1277be9

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

account-compression/programs/account-compression/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "spl-account-compression"
3-
version = "0.3.1"
3+
version = "0.3.2"
44
description = "Solana Program Library Account Compression Program"
55
authors = ["Solana Labs Maintainers <[email protected]>"]
66
repository = "https://github.com/solana-labs/solana-program-library"

account-compression/programs/account-compression/src/concurrent_tree_wrapper.rs

+9
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,12 @@ pub fn merkle_tree_append_leaf(
8686
) -> Result<Box<ChangeLogEvent>> {
8787
merkle_tree_apply_fn_mut!(header, tree_id, tree_bytes, append, *args)
8888
}
89+
90+
#[inline(never)]
91+
pub fn merkle_tree_prove_tree_is_empty(
92+
header: &ConcurrentMerkleTreeHeader,
93+
tree_id: Pubkey,
94+
tree_bytes: &mut [u8],
95+
) -> Result<Box<ChangeLogEvent>> {
96+
merkle_tree_apply_fn_mut!(header, tree_id, tree_bytes, prove_tree_is_empty,)
97+
}

account-compression/programs/account-compression/src/lib.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ use crate::noop::wrap_event;
4848
use crate::state::{
4949
merkle_tree_get_size, ConcurrentMerkleTreeHeader, CONCURRENT_MERKLE_TREE_HEADER_SIZE_V1,
5050
};
51-
use crate::zero_copy::ZeroCopy;
5251
use solana_security_txt::security_txt;
5352

5453
/// Exported for Anchor / Solita
@@ -482,7 +481,7 @@ pub mod spl_account_compression {
482481
let (tree_bytes, canopy_bytes) = rest.split_at_mut(merkle_tree_size);
483482

484483
let id = ctx.accounts.merkle_tree.key();
485-
merkle_tree_apply_fn_mut!(header, id, tree_bytes, prove_tree_is_empty,)?;
484+
merkle_tree_prove_tree_is_empty(&header, id, tree_bytes)?;
486485

487486
// Close merkle tree account
488487
// 1. Move lamports

0 commit comments

Comments
 (0)