Anchor
AccountOwnedByWrongProgram
“The given account is owned by a different program than expected”
The account is owned by a program other than the one Anchor expects for its type.
Common causes
- Passing an SPL Token account where a Token-2022 account is expected (or vice versa).
- Passing an account that was never initialised (still owned by the System Program).
How to fix it
- Check the owner on an explorer. Initialise the account or pass one owned by the correct program.