Custom program error

0x10054101

Appears in logs as custom program error: 0x1005

Anchor

TryingToInitPayerAsProgramAccount

“You cannot/should not initialize the payer account as a program account”

You used the payer account as the account being initialised.

Common causes

  • #[account(init, payer = user)] pub user: ... or passing the same key for both.

How to fix it

  • Use a separate account for init and for payer.

Decode another error

Try: