Instruction
ModifiedProgramId
“instruction illegally modified the program id of an account”
A program changed the owner of an account it is not allowed to.
Common causes
- Only the current owner (or the System Program for system-owned accounts) may reassign an account.
How to fix it
- Use the System Program
assignfor system-owned accounts; the owner program must assign otherwise.