Skip to content

fix: prevent panics on None transaction_index in verifiable-api#703

Open
reject-i wants to merge 2 commits intoa16z:masterfrom
reject-i:fix/verifiable-api-unwrap-panics
Open

fix: prevent panics on None transaction_index in verifiable-api#703
reject-i wants to merge 2 commits intoa16z:masterfrom
reject-i:fix/verifiable-api-unwrap-panics

Conversation

@reject-i
Copy link
Copy Markdown
Contributor

Replace unsafe unwrap() calls with proper error handling in verifiable-api service to prevent runtime panics when processing pending transactions and logs.

  • Fix 8 unwrap() calls on Optional fields that can be None
  • Use filter_map() for graceful handling of incomplete log entries
  • Add descriptive error messages for debugging

Prevents panics on pending transactions where transaction_index is None.

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.

1 participant