Skip to content

[native] Hide max depth and buffer when calling init_empty_merkle_tree #40

Description

@JazielGuerrero

Is your enhancement request related to a problem? Please describe.
When using the method csl_spl_account_compression.init_empty_merkle_tree it will generate the following call in my stub:

    csl_spl_account_compression::src::cpi::init_empty_merkle_tree(
        for_init_empty_merkle_tree,
        30,
        512,
    )?;

Describe the solution you'd like
I'd like the generator to put the values for max depth and buffer, in this case, 30 and 512 respectively within the init_empty_merkle_tree itself. These values cannot be changed because they can break other parts of the code. I wouldn't like another colleague or me to change these values. These values' source of truth must be the CIDL, specifically the capacity attribute.

Describe alternatives you've considered
N/A

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    BacklogStuff to be done in the futureEnhancementThis improve the product or Código's source code

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions