From 68315e66b2df22d020cdc4106636313d06e608df Mon Sep 17 00:00:00 2001 From: Jose Ferrer Date: Wed, 5 Aug 2026 11:49:04 +0700 Subject: [PATCH] fix(basics/close-account): reserve the 8-byte discriminator in create_user Co-Authored-By: Claude Fable 5 --- .../programs/close-account/src/instructions/create_user.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basics/close-account/anchor/programs/close-account/src/instructions/create_user.rs b/basics/close-account/anchor/programs/close-account/src/instructions/create_user.rs index 018067a99..ccef2018c 100644 --- a/basics/close-account/anchor/programs/close-account/src/instructions/create_user.rs +++ b/basics/close-account/anchor/programs/close-account/src/instructions/create_user.rs @@ -9,7 +9,7 @@ pub struct CreateUserContext<'info> { #[account( init, payer = user, - space = UserState::INIT_SPACE, + space = 8 + UserState::INIT_SPACE, seeds = [ b"USER", user.key().as_ref(),