foundry icon indicating copy to clipboard operation
foundry copied to clipboard

feat: `vm.blobhashes`

Open onbjerg opened this issue 1 year ago • 1 comments

Motivation

There is no way to mock blobhashes currently

Solution

Add a cheatcode to set all blobhashes in the transaction. Note that this takes a list of blobhashes, as setting them individually by index would require us to fill the blobhash list with garbage in some cases to grow the list to an appropriate size and avoid a panic.

Closes https://github.com/foundry-rs/foundry/issues/6996

onbjerg avatar Feb 02 '24 15:02 onbjerg

Gonna take a while, I have to redo the entire testdata directory since we want to run Cancun separate from every other test, and currently we just compile everything in the testdata directory

onbjerg avatar Feb 02 '24 16:02 onbjerg

Is this pr currently blocked?

flyq avatar Feb 23 '24 07:02 flyq

yes, but not on a feature/pr, just on time. we need to restructure most of our testing suite because we want to test cancun separately

onbjerg avatar Feb 23 '24 22:02 onbjerg

@yash-atreya this should be unblocked now with cancun specific test setup so ptal

mattsse avatar Apr 04 '24 19:04 mattsse

@mattsse ptal

yash-atreya avatar Apr 25 '24 21:04 yash-atreya