Skip to content

0.9.53

Choose a tag to compare

@github-actions github-actions released this 28 Jul 20:45
fdee69d
fix: strip null optional accounts from Adrena instructions (error 3007)

buildInstruction was passing null for optional accounts (referrerProfile)
to Anchor. Anchor v0.30 resolves null for optional accounts without PDA
seeds to a wrong address, causing on-chain error 3007 (account owned by
different program). This affected closePositionShort, closePositionLong,
and all builders that pass referrerProfile = null.

Fix: strip null entries from the accounts object before passing to
Anchor, so optional accounts are omitted entirely from the instruction.