Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pub const ANCHOR_DESCRIMINATOR_SIZE: usize = 8;
pub const ANCHOR_DISCRIMINATOR_SIZE: usize = 8;
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::{constants::ANCHOR_DESCRIMINATOR_SIZE, state::AddressInfo};
use crate::{constants::ANCHOR_DISCRIMINATOR_SIZE, state::AddressInfo};
use anchor_lang::prelude::*;

#[derive(Accounts)]
Expand All @@ -9,7 +9,7 @@ pub struct CreateAddressInfo<'info> {
#[account(
init,
payer = payer,
space = ANCHOR_DESCRIMINATOR_SIZE + AddressInfo::INIT_SPACE,
space = ANCHOR_DISCRIMINATOR_SIZE + AddressInfo::INIT_SPACE,
)]
address_info: Account<'info, AddressInfo>,
system_program: Program<'info, System>,
Expand Down