Custom program error

0x10044100

Appears in logs as custom program error: 0x1004

Anchor

DeclaredProgramIdMismatch

“The declared program id does not match the actual program id”

The declare_id! in the program source does not match the id of the deployed program executing the instruction.

Common causes

  • Deploying to a new program keypair without updating declare_id! and Anchor.toml.
  • Running tests against a program built with a different id.

How to fix it

  • Run anchor keys sync, rebuild and redeploy.

Decode another error

Try: