Skip to content

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

Open
@adu-web3

Description

@adu-web3

Component

Forge

Describe the feature you would like

Currently if we write foundry script to call the beacon root address like this:

(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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions