developer-content icon indicating copy to clipboard operation
developer-content copied to clipboard

init_if_needed may not be required here [CRUD App Tutorial]

Open adlonymous opened this issue 8 months ago • 2 comments

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 avatar Jun 06 '24 03:06 adlonymous