foundry-rs / foundry-rs/foundry

Tenderly <> Foundry Integration

Open
#7,208 2 comments 1 reaction 0 assignees View on GitHub
A-compatibility A-extensions T-feature
Dominant language
Rust
Stars
10.6k
Forks
2.6k
Avg merge
18h 20m
Merged PRs (30d)
510

Description

### Component

Cast, Anvil

### Describe the feature you would like

The Tenderly simulator is extremely useful for telling me the precise line with the precise arguments that my code reverts on. It would be great if any failed transaction in Anvil or any failed transaction with `cast send` or `cast run` or even 'cast simulate` popped up a Tenderly simulator.

For instance, anvil could have a --tenderly feature in which all failed transactions output a tenderly link for me, with all the configs preset and previous transactions mocked, to debug what went wrong.

Alternatively, I could fork my own network off of Tenderly to get this in by default, since they have forked networks too (idk if they have the simulator connected) -- but I don't know what config to use to fill the 10 example foundry accounts which I use for testing.

### Additional context

The problem is that with Foundry, I don't know any easy way to easily debug a failed transaction triggered from a js file or non-Solidity file, especially on a forked network. This is one proposed solution.

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.