Custom program error

0x7df2015

Appears in logs as custom program error: 0x7df

Anchor

ConstraintTokenOwner

“A token owner constraint was violated”

A token account's owner does not match the token::authority constraint.

Common causes

  • Passing a token account owned by another wallet or PDA.

How to fix it

  • Pass the token account owned by the authority named in the constraint.

Decode another error

Try: