Custom program error

0x7f72039

Appears in logs as custom program error: 0x7f7

Anchor

ConstraintMintTransferHookExtensionProgramId

“A transfer hook extension transfer hook program id constraint was violated”

A transfer hook extension transfer hook program id constraint was violated. Anchor checked the MintTransferHookExtensionProgramId constraint on one of the instruction's accounts and the account did not satisfy it.

Common causes

  • The account passed under the constrained name does not meet the MintTransferHookExtensionProgramId requirement declared in the #[account(...)] attribute.
  • The client was generated from an outdated IDL, so accounts are mapped to the wrong names.

How to fix it

  • Read the program logs just before this error: Anchor prints AnchorError caused by account: <name> with the left/right values when available.
  • Open the instruction's #[derive(Accounts)] struct, find that account and satisfy the constraint.

Decode another error

Try: