Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: IDL generation in programs using light-sdk (#1233)
Even when using `idl-build` feature, Anchor still parses the code of the program and expects the `#[program]` attribute applied on the main module. Before this change, annotating the program module only with `#[light_program]` was preventing the IDL generation. Fix that by requiring both attributes: ```rust #[light_program] #[program] ``` And not injecting the `#[program]` inside `#[light_program]`.
- Loading branch information