Skip to content

Fix inner instruction events not being detected#4451

Open
Matthias1590 wants to merge 7 commits into
otter-sec:masterfrom
Matthias1590:inner-instruction-event-detection
Open

Fix inner instruction events not being detected#4451
Matthias1590 wants to merge 7 commits into
otter-sec:masterfrom
Matthias1590:inner-instruction-event-detection

Conversation

@Matthias1590
Copy link
Copy Markdown

@Matthias1590 Matthias1590 commented Apr 22, 2026

Fixes #4450 by removing the "log:" part of the log check, if a log line starts with Program ${programId.toString()} it belongs to programId, whether it's a log, or invoke.

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 22, 2026

@Matthias1590 is attempting to deploy a commit to the Solana Foundation Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Copy Markdown
Collaborator

@0x4ka5h 0x4ka5h left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prefer matching inner invoke with the same regex as the first log and only then push if the captured id equals this program. Also Could you please mirror the change in client/lib.rs and add a small parseLogs test there aswell.

Comment thread ts/packages/anchor/src/program/event.ts Outdated
@Matthias1590
Copy link
Copy Markdown
Author

Will do

@Matthias1590
Copy link
Copy Markdown
Author

Matthias1590 commented Apr 23, 2026

Requested changes are made. The added test failed pre-edit and passed afterwards, as expected.

@Matthias1590 Matthias1590 requested a review from 0x4ka5h April 23, 2026 11:58
@Matthias1590
Copy link
Copy Markdown
Author

Formatting is fixed now

@Matthias1590
Copy link
Copy Markdown
Author

Will this be merged? Constantly syncing my fork up to date for my projects is getting annoying :p

@Matthias1590
Copy link
Copy Markdown
Author

Bump

@0x4ka5h 0x4ka5h requested a review from swaroop-osec April 30, 2026 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Events not being detected in inner instruction logs

2 participants