foundry icon indicating copy to clipboard operation
foundry copied to clipboard

bug(`prague hardfork`): add support for EIP-2935, currently missing

Open arr00 opened this issue 7 months ago • 8 comments

Component

Forge

Describe the feature you would like

EIP-2935 is part of the prague hardfork coming in May. Foundry should have full test support for EIP-2935, which would involve the following:

  • Set the code for the contract at HISTORY_STORAGE_ADDRESS
  • Automatically call HISTORY_STORAGE_ADDRESS from SYSTEM_ADDRESS during the creation of all blocks
  • vm.setBlockhash(#7929) should also set the blockhash on the contract at HISTORY_STORAGE_ADDRESS. Expand it's usability to the new serve window of 8191.

Additional context

No response

arr00 avatar Apr 23 '25 20:04 arr00

I would like to take on it

nadtech-hub avatar Apr 24 '25 16:04 nadtech-hub

Hi @arr00 thanks for flagging this, this requires some investigating what part of this is related to Foundry and what to Revm.

The change in Foundry is possibly limited to the updating of the cheatcode.

zerosnacks avatar May 01 '25 11:05 zerosnacks

@zerosnacks with alloy-evm we now have a way to invoke the system call directly, which we'd then need to invoke everytime we process a block, unsure how this affects forge though, this is probably more of an anvil issue

mattsse avatar May 01 '25 11:05 mattsse

I see, tagging this as anvil, depending on how critical this is we can decide to pick it up independently from the revm bump or mark it as effectively blocked and treat it as a follow-up.

cc @grandizzy

zerosnacks avatar May 01 '25 12:05 zerosnacks

Marking as blocked by https://github.com/foundry-rs/foundry/pull/10183 as it effectively relies on alloy-evm

zerosnacks avatar May 08 '25 11:05 zerosnacks

No longer blocked post-revm bump

zerosnacks avatar May 19 '25 16:05 zerosnacks

Hi, sorry for the bump on this issue, but is this planned for implementation?

ngmachado avatar May 27 '25 16:05 ngmachado

Thanks for flagging @ngmachado, going to look into this again that it is unblocked

zerosnacks avatar May 27 '25 17:05 zerosnacks

hey guys, sorry to bother here, is this issue planned to be implemented / fixed in the future?

alessandromazza98 avatar Oct 01 '25 12:10 alessandromazza98