Closed vadorovsky closed 1 week ago
Even when using idl-build feature, Anchor still parses the code of the program and expects the #[program] attribute applied on the main module.
idl-build
#[program]
Before this change, annotating the program module only with #[light_program] was preventing the IDL generation. Fix that by requiring both attributes:
#[light_program]
#[light_program] #[program]
And not injecting the #[program] inside #[light_program].
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:And not injecting the
#[program]
inside#[light_program]
.