Skip to content

Commit

Permalink
docs: Remove duplicate usage example of the signer constraint (#3534)
Browse files Browse the repository at this point in the history
  • Loading branch information
notorious-d-e-v authored Feb 4, 2025
1 parent 5dab494 commit b470788
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions docs/content/docs/references/account-constraints.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ for implementation details.

### `#[account(signer)]`

```rust title="attribute"
#[account(signer)]
#[account(signer @ <custom_error>)]
```

Description: Checks the given account signed the transaction. Consider using the
Signer type if you would only have this constraint on the account.
Examples: [Github](https://github.com/solana-developers/anchor-examples/tree/main/account-constraints/signer)
Expand Down

0 comments on commit b470788

Please sign in to comment.