Closed vadorovsky closed 2 months ago
Allow to reference the instruction parameters in seed = and constraint = parametes inside light_account attribute by exposing them through #[instruction] attribute. It works the same way as in Anchor.
seed =
constraint =
light_account
#[instruction]
Code example:
#[instruction(name: String)] pub struct MyInstruction { #[light_account(init, seeds = [b"my-seed", name.as_bytes()])] pub my_cpda: MyCpdaType, [...] }
Allow to reference the instruction parameters in
seed =
andconstraint =
parametes insidelight_account
attribute by exposing them through#[instruction]
attribute. It works the same way as in Anchor.Code example: