Skip to content

Commit

Permalink
Fix INIT_SPACE typo (#430)
Browse files Browse the repository at this point in the history
Fix typo introduced in the last commit.
Replace MovieAccountState::INIT_SOACE by MovieAccountState::INIT_SPACE
  • Loading branch information
T-Mathieu authored Sep 5, 2024
1 parent 3c43753 commit d2e220e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/courses/onchain-development/anchor-pdas.md
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ pub struct AddMovieReview<'info> {
seeds = [title.as_bytes(), initializer.key().as_ref()],
bump,
payer = initializer,
space = DISCRIMINATOR + MovieAccountState::INIT_SOACE
space = DISCRIMINATOR + MovieAccountState::INIT_SPACE
)]
pub movie_review: Account<'info, MovieAccountState>,
#[account(mut)]
Expand Down Expand Up @@ -674,7 +674,7 @@ pub struct UpdateMovieReview<'info> {
mut,
seeds = [title.as_bytes(), initializer.key().as_ref()],
bump,
realloc = DISCRIMINATOR + MovieAccountState::INIT_SOACE
realloc = DISCRIMINATOR + MovieAccountState::INIT_SPACE
realloc::payer = initializer,
realloc::zero = true,
)]
Expand Down

0 comments on commit d2e220e

Please sign in to comment.