hpl_toolkit::compression

Function replace_leaf

source
pub fn replace_leaf<'info>(
    root: Node,
    previous_leaf: Node,
    new_leaf: Node,
    index: u32,
    authority: &AccountInfo<'info>,
    merkle_tree: &AccountInfo<'info>,
    compression_program: &Program<'info, SplAccountCompression>,
    noop: &Program<'info, Noop>,
    remaining_accounts: Vec<AccountInfo<'info>>,
    signer_seeds: Option<&[&[&[u8]]; 1]>,
) -> Result<()>