foundry-rs / foundry-rs/foundry

`cast run` produces incorrect simulation of Arbitrum transaction (succeeds where it should fail)

Open
#7,514 4 comments 0 reactions 0 assignees View on GitHub
C-cast P-normal T-bug T-to-investigate
Dominant language
Rust
Stars
10.6k
Forks
2.6k
Avg merge
18h 20m
Merged PRs (30d)
510

Description

### Component

Cast

### Have you ensured that all of these are up to date?

- [X] Foundry
- [X] Foundryup

### What version of Foundry are you on?

forge 0.2.0 (9881e7d 2024-03-28T00:18:02.827635071Z)

### What command(s) is the bug in?

cast run 0x1d66909d9039e5937406357449fad064edbb6d9c81944a8001ebfc4f0ba6d0b9 --rpc-url "https://arb1.arbitrum.io/rpc"

### Operating System

Linux

### Describe the bug

Transaction should run out of gas according to block explorers (ex: https://arbiscan.io/tx/0x1d66909d9039e5937406357449fad064edbb6d9c81944a8001ebfc4f0ba6d0b9), however when simulating in cast it succeeds:

```cast run 0x1d66909d9039e5937406357449fad064edbb6d9c81944a8001ebfc4f0ba6d0b9 --rpc-url "https://arb1.arbitrum.io/rpc"```
...
Transaction successfully executed.
Gas used: 611728

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.