-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add
#[instruction]
attribute (#1220)
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. Code example: ```rust #[instruction] pub struct MyInstruction { #[light_account(init, seeds = [b"my-seed", name.as_bytes()])] pub my_cpda: MyCpdaType, [...] } ```
- Loading branch information
1 parent
5586f7e
commit a6d3b56
Showing
3 changed files
with
315 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.