Custom program error

0x3452

Appears in logs as custom program error: 0x34

Token-2022TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb

InvalidLengthForAlloc

“Extension allocation with overwrite must use the same length”

A reallocation for an extension tried to change its size, which is not allowed when overwriting.

Common causes

  • Re-initialising a variable-length extension (such as metadata) with a different size using the overwrite flag.

How to fix it

  • Reallocate the account to the new size first, or do not use overwrite.

Decode another error

Try: