Skip to content

[cfg(feature = "abc")] doesn't seem to work with #program #3593

@ferencdg

Description

@ferencdg

feature abc is off

#[program]
pub mod dyn_staking {
    [cfg(feature = "abc")]
    pub fn modify_mock_clock(ctx: Context<MockClock>, mock_clock: u32) -> Result<()> {
        dyn_staking::instructions::modify_mock_clock(ctx, mock_clock)
    }
}

Error:

pub fn modify_mock_clock(ctx: Context, mock_clock: u32) -> Result<()> {
| ^^^^^^^^^^^^^^^^^ private function import

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions