Skip to content

No Support for Reallocating Accounts (Reallocation) in Poseidon Programs #22

@ritikbhatt20

Description

@ritikbhatt20

No support for dynamic account reallocation, which limits the flexibility needed for certain Solana programs.
In Anchor, we can realloc attribute allows developers to resize system accounts dynamically.

example code in Anchor to reallocate size:

#[account( mut, realloc = (new_size), realloc::payer = payer, realloc::zero = true, )]

Adding reallocation support would be a valuable enhancement to the Poseidon framework
Example - https://github.com/solana-developers/program-examples/tree/main/basics/realloc/anchor

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions