fix: match filter criteria return None on contract creation failure#6820
Merged
akaladarshi merged 1 commit intomainfrom Mar 31, 2026
Merged
fix: match filter criteria return None on contract creation failure#6820akaladarshi merged 1 commit intomainfrom
akaladarshi merged 1 commit intomainfrom
Conversation
Contributor
WalkthroughUpdated Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
✨ Simplify code
Comment |
…ror and also increase coverage
85356c5 to
267edfa
Compare
Contributor
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@src/rpc/methods/eth/trace/types.rs`:
- Around line 1206-1357: Add an integration test that reproduces the Lotus-style
failed CREATE2 scenario (e.g., TestFEVMEthTraceFilterFailedCreate) to verify
end-to-end EthTraceFilter behavior instead of just unit-level
match_filter_criteria checks; implement a test that spins up the minimal
EVM/FEVM test harness used by other integration tests, submits a transaction
that triggers a failing CREATE2 (resulting in no created address and an error),
calls the RPC trace/filter endpoint (or constructs an EthTraceFilter run path)
to collect traces, and assert the returned traces and filtering behavior match
the expected failed-create semantics (use EthTrace, TraceAction::Create,
TraceResult::Create with address=None and error set, and ensure
EthTraceFilter/trace RPC returns/filters it accordingly).
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: 87f0ca5a-17f0-4b25-8a87-f3baf913fb43
📒 Files selected for processing (1)
src/rpc/methods/eth/trace/types.rs
hanabi1224
approved these changes
Mar 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of changes
Changes introduced in this pull request:
Noneif thecreatetrace doesn't contain any address (failed to deploy contract) instead of errormatch_filter_criteriaReference issue to close (if applicable)
Closes #6739
Other information and links
Change checklist
Outside contributions
Summary by CodeRabbit
Bug Fixes
Tests