Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarunrao0 committed Aug 28, 2024
1 parent f34fb08 commit 25ffbff
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 @@ -38,7 +38,7 @@ reallocate accounts, and close accounts.
### PDAs with Anchor

Recall that
[PDAs](https://github.com/Unboxed-Software/solana-course/blob/main/content/pda)
[PDAs](https://github.com/Unboxed-Software/solana-course/blob/main/content/pda.md)
are derived using a list of optional seeds, a bump seed, and a program ID.
Anchor provides a convenient way to validate a PDA with the `seeds` and `bump`
constraints.
Expand Down Expand Up @@ -230,7 +230,7 @@ To use `init_if_needed`, you must first enable the feature in `Cargo.toml`.

```rust
[dependencies]
anchor-lang = { version = "0.25.0", features = ["init-if-needed"] }
anchor-lang = { version = "0.30.1", features = ["init-if-needed"] }
```

Once you’ve enabled the feature, you can include the constraint in the
Expand Down

0 comments on commit 25ffbff

Please sign in to comment.