Anchor
AccountDiscriminatorAlreadySet
“The account discriminator was already set on this account”
The account discriminator was already set on this account. Anchor validated the account while deserialising the instruction's accounts and rejected it.
Common causes
- The account passed does not match what the instruction's accounts struct declares.
How to fix it
- Check the logs for
AnchorError caused by account: <name>and verify that account's address, owner, data and signer status.