Commit ccad558
fix(lib): harden CPI inner-instruction reconstruction edge cases (#394)
* fix(lib): handle CPI-only accounts in inner instruction reconstruction
Extend account keys dynamically when reconstructing inner instructions
from parsed RPC simulation data. CPI PDA signers and invoked programs
not present in the outer transaction's account keys were silently
dropped, causing validation failures for DeFi protocols like Kamino.
Also fixes burn instruction parsing when Solana RPC omits the mint
field from non-checked burn JSON.
* fix(lib): address CPI reconstruction review edge cases
* fix(lib): fail closed on inner instruction reconstruction errors
* fix(lib): sanitize transaction error details
* fix(lib): handle token account size CPI parsing
* refactor(lib): cache CPI reconstruction account indexes
* fix(transaction): persist extended account keys after CPI reconstruction
---------
Co-authored-by: Wellington B. <wellingtonmb88@gmail.com>
Co-authored-by: Jo D <dev-jodee@users.noreply.github.com>1 parent 18539eb commit ccad558
File tree
2 files changed
+755
-118
lines changed- crates/lib/src/transaction
2 files changed
+755
-118
lines changed
0 commit comments