Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

init_if_needed may not be required here [CRUD App Tutorial] #231

Open
adlonymous opened this issue Jun 6, 2024 · 2 comments
Open

init_if_needed may not be required here [CRUD App Tutorial] #231

adlonymous opened this issue Jun 6, 2024 · 2 comments

Comments

@adlonymous
Copy link

Problem

Re: content/guides/dapps/journal.md [The CRUD app tutorial]
while defining the account for creating a journal entry, init_if_needed is one of the account constraints, which I don't think is needed and I'm not really sure the feature flag is included when using create-solana-dapp

Proposed Solution

Just include init instead of init_if_needed in the code snippet

@adlonymous
Copy link
Author

Using init_if_needed also throws an error which is probably because it hasn't been explicitly imported. This error is solved by using init instead

@adlonymous
Copy link
Author

Also, new version of create-solana-dapp requires Anchor 0.30.0. Would be incredibly useful if the tutorial had a note in the beginning stating the required versions of Anchor and Solana CLI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant