foundry-rs / foundry-rs/foundry

feat(backtraces): resolve modifiers, internal calls and libs using solar

Open
#11,652 0 comments 0 reactions 0 assignees View on GitHub
C-forge T-feature
Dominant language
Rust
Stars
10.6k
Forks
2.6k
Avg merge
16h 38m
Merged PRs (30d)
511

Description

### Component

Forge

### Describe the feature you would like

https://github.com/foundry-rs/foundry/pull/11547 introduces backtraces to forge in case of a failure but it does not display `BacktraceFrame`'s for modifiers, internal calls / libraries (these get inlined in the bytecode) as this requires `TraceMode::Debug` and solc `ast` analysis which was causing OOM issues, See: https://github.com/foundry-rs/foundry/pull/11648

We can detect internal calls using solar. Ref: https://github.com/foundry-rs/foundry/pull/11612

https://github.com/foundry-rs/foundry/blob/9d4f7eb90c53a5ad1cafdd12a7e1706c6b53eadb/crates/forge/src/cmd/test/mod.rs#L310-L327

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.