Custom program error

0x3ea1002

Appears in logs as custom program error: 0x3ea

Anchor

IdlAccountNotEmpty

“IDL account must be empty in order to resize, try closing first”

IDL account must be empty in order to resize, try closing first.

Common causes

  • Using anchor idl commands against a program built without IDL support or with the wrong program id.

How to fix it

  • Build with the idl-build feature and double check the program id passed to the IDL command.

Decode another error

Try: