Instruction errors (runtime)

AccountBorrowOutstanding

Appears as instruction left account with an outstanding borrowed reference

Instruction

AccountBorrowOutstanding

“instruction left account with an outstanding borrowed reference”

A program returned while still holding a borrow on account data.

Common causes

  • The runtime rejected the instruction while enforcing account and program rules.

How to fix it

  • Make sure all borrow()/borrow_mut() references are released.

Decode another error

Try: