foundry-rs / foundry-rs/foundry

feat(`forge script`): support EIP-4788 (the beacon root oracle) in local simulation

Open
#7,938 1 comment 0 reactions 0 assignees View on GitHub
A-compatibility A-evm Cmd-forge-script P-low T-feature
Dominant language
Rust
Stars
10.6k
Forks
2.6k
Avg merge
18h 20m
Merged PRs (30d)
510

Description

### Component

Forge

### Describe the feature you would like

Currently if we write foundry script to call the beacon root address like this:
```solidity
(bool success,) = BEACON_ROOTS.staticcall(abi.encode(_targetTimestamp));
```
where `BEACON_ROOTS` refer to `0x000F3df6D732807Ef1319fB7B8bB8522d0Beac02` defined in EIP4788(https://eips.ethereum.org/EIPS/eip-4788#bytecode), the tx can not be fired because of `Failed to estimate gas for tx`. I guess EIP4788 is not supported by foundry script

### 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.