-
Notifications
You must be signed in to change notification settings - Fork 450
Open
Description
program-examples/basics/close-account/anchor/programs/close-account/src/instructions/create_user.rs
Lines 9 to 19 in 16068f8
#[account( | |
init, | |
payer = user, | |
space = UserState::INIT_SPACE, | |
seeds = [ | |
b"USER", | |
user.key().as_ref(), | |
], | |
bump | |
)] | |
pub user_account: Account<'info, UserState>, |
Why doesn't this account space need an additional ANCHOR_DESCRIMINATOR_SIZE
(8) but the below does?
Lines 9 to 14 in 16068f8
#[account( | |
init, | |
payer = payer, | |
space = ANCHOR_DESCRIMINATOR_SIZE + AddressInfo::INIT_SPACE, | |
)] | |
address_info: Account<'info, AddressInfo>, |
Metadata
Metadata
Assignees
Labels
No labels