You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The existing #[account(associated)] api should just check the seeds provided indeed result in the correct associated address. It shouldn't create the PDA account, as it currently does.
Instead, we should force the user to explicitly pass in init, e.g., #[account(init, associated)] to run the account creation flow. Thereafter, one can use #[account(associated)] to perform checks to ensure the correct account and seeds are passed in.
Since this includes some stuff with associated accounts and seed maybe its good idea to also add versioning #233 IMO super important for upgradable projects.
The existing
#[account(associated)]
api should just check the seeds provided indeed result in the correct associated address. It shouldn't create the PDA account, as it currently does.Instead, we should force the user to explicitly pass in
init
, e.g.,#[account(init, associated)]
to run the account creation flow. Thereafter, one can use#[account(associated)]
to perform checks to ensure the correct account and seeds are passed in.Discussed with @Henry-E.
The text was updated successfully, but these errors were encountered: