Open adu-web3 opened 5 months ago
@adu-web3 could you try just using vm.etch
cheatcode to deploy smart contract at given address?
https://github.com/foundry-rs/forge-std/blob/master/src/Vm.sol#L1703-L1704
Another option would be to fork mainnet in your tests (so the contract will be available).
Component
Forge
Describe the feature you would like
Currently if we write foundry script to call the beacon root address like this:
where
BEACON_ROOTS
refer to0x000F3df6D732807Ef1319fB7B8bB8522d0Beac02
defined in EIP4788(https://eips.ethereum.org/EIPS/eip-4788#bytecode), the tx can not be fired because ofFailed to estimate gas for tx
. I guess EIP4788 is not supported by foundry scriptAdditional context
No response