If an account has been closed with the following anchor context:
#[account(
mut,
close = user,
seeds = [
SEED_SCHEMA.as_bytes(),
&user.key().as_ref(),
],
bump
)]
pub account: Box<Account<'info, Account>>,
Can it be "repoened" again, if invoked with init
and the same seeds?
Or is it not actually closed and need to invoke it with init_if_needed
?
Trying to call function which in its context includes the initialisation for the above account gives me account already exists
error, which I did not expect and am not sure how to solve it.
init
and the same seeds will simply create the account again.