Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add a simple way to create accounts #4

Closed
Tracked by #27
Dodecahedr0x opened this issue Nov 25, 2024 · 0 comments
Closed
Tracked by #27

Add a simple way to create accounts #4

Dodecahedr0x opened this issue Nov 25, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Dodecahedr0x
Copy link
Contributor

The Account trait verifies that the account exists, the UncheckedAccount does not let you retrieve account data when initialized within the instruction.

I suggest having either an annotation on the context that specifies that the account requires creation or a lazy context that lets the program dev manage when to create the account. The former could make the code more compact but requires more contexts, the latter could be more efficient by allowing the dev to make some checks before allocating the account.

@Aursen Aursen added the enhancement New feature or request label Nov 25, 2024
@Aursen Aursen closed this as completed Dec 11, 2024
@Aursen Aursen mentioned this issue Dec 11, 2024
30 tasks
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants