Anchor
ConstraintRaw
“A raw constraint was violated”
A constraint = <expression> check evaluated to false.
Common causes
- The custom condition written on the account did not hold for the accounts and arguments supplied.
How to fix it
- Look up the constraint expression in the program source for the account named in the logs and satisfy it. Add a custom error to the constraint (
@ MyError::Reason) for clearer messages.