Skip to content

fix: proper handling of partially-identified txs to 'unidentified'#42

Merged
blurpesec merged 1 commit intomainfrom
fix/handling-of-unidentified-txs
Apr 21, 2026
Merged

fix: proper handling of partially-identified txs to 'unidentified'#42
blurpesec merged 1 commit intomainfrom
fix/handling-of-unidentified-txs

Conversation

@blurpesec
Copy link
Copy Markdown
Contributor

@blurpesec blurpesec commented Apr 21, 2026

Note

Medium Risk
Adjusts V6 fallback classification logic, which can change how some transactions are labeled (STANDARD vs CONTRACT_CALL) in user-facing history; impact should be limited but touches core categorization behavior.

Overview
Fixes V6 fallback categorization so transactions with a methodId but no logs are treated as GENERIC_CONTRACT_CALL/CONTRACT_CALL (readable: "Unidentified Transaction") instead of being downgraded to STANDARD.

Adds a regression test and nock fixture for an ENS commit() transaction that has a methodId but emits no logs to ensure this behavior stays correct.

Reviewed by Cursor Bugbot for commit ff6eab3. Bugbot is set up for automated code reviews on this repo. Configure here.

@blurpesec blurpesec requested a review from a team as a code owner April 21, 2026 19:19
}

if (!transaction.logs || !transaction.logs.length || !transaction.methodId) {
if ((!transaction.logs || !transaction.logs.length) && !transaction.methodId) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

nit: could be shortened to if (!transaction.logs?.length && !transaction.methodId) { but it's fine like this as well ofc

@blurpesec blurpesec merged commit 53b5de5 into main Apr 21, 2026
15 checks passed
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.

2 participants