Custom program error

0x2941

Appears in logs as custom program error: 0x29

Token-2022TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb

CpiGuardSettingsLocked

“CPI Guard cannot be enabled or disabled in CPI”

EnableCpiGuard/DisableCpiGuard must be sent as top-level instructions, not through a cross-program invocation.

Common causes

  • A program trying to toggle CPI Guard on a user's account via CPI.

How to fix it

  • Send the enable/disable instruction directly from the wallet.

Decode another error

Try: