foundry icon indicating copy to clipboard operation
foundry copied to clipboard

Foundry script does not support EIP4788(the beacon root oracle) in local simulation

Open adu-web3 opened this issue 9 months ago • 0 comments

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

adu-web3 avatar May 17 '24 04:05 adu-web3