Skip to content

Conversation

@0xMuang
Copy link
Collaborator

@0xMuang 0xMuang commented Jan 26, 2026

Summary

  • Fixed depth tracking bug in CallTracer when only_top_call is enabled
  • Previously, nested calls would cause the root frame to be popped prematurely

Problem

When only_top_call was enabled:

  1. push_frame skipped nested calls without incrementing depth
  2. pop_frame checked depth > 1 which was false (depth stayed at 1)
  3. This caused root frame to be popped when nested call ended

Fix

Now depth is incremented before the early return check, so pop_frame correctly skips nested call endings.

Test

  • 3 line change in crates/execution/src/inspector/call_tracer.rs

Reported by @qj0r9j0vc2 in PR #115

@0xMuang 0xMuang merged commit e76b9a3 into main Jan 26, 2026
9 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.

3 participants