Skip to content

engine: update_call_stack uses string matching on Debug output to detect cross-contract calls #745

@Timi16

Description

@Timi16

File: src/debugger/engine.rsDebuggerEngine::update_call_stack

The method checks event_str.contains("ContractCall") where event_str is the {:?} debug representation. This is fragile — any rename of the variant or change to Debug formatting silently breaks cross-contract call tracking.

Proposal: Match on the event enum variant directly instead of its string representation.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions