Skip to content

Feature request: something like INIT_SPACE #84

@mikemaccana

Description

@mikemaccana

From the demo app:

pub const LEN: usize = 1 + 32 + 4;

In current Anchor we can avoid the magic numbers (and the readability or possible errors that go with magic numbers) with SomeSTRUCT::INIT_SPACE. It would be useful to have something similar in Shank.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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