Instruction errors (runtime)

ReadonlyDataModified

Appears as instruction modified data of a read-only account

Instruction

ReadonlyDataModified

“instruction modified data of a read-only account”

The data of an account passed as read-only was changed.

Common causes

  • Marking an account non-writable while the program writes to it (common when a stale client marks a mut account read-only).

How to fix it

  • Mark the account writable.

Decode another error

Try: