Instruction
BorshIoError
“Failed to serialize or deserialize account data”
Borsh serialisation or deserialisation of account data failed.
Common causes
- Account data layout does not match the struct, or the buffer is too small to serialise into.
How to fix it
- Allocate enough space and keep struct layouts in sync between versions.