Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: vm.blobhashes #7001

Merged
merged 13 commits into from
Apr 25, 2024
Merged

feat: vm.blobhashes #7001

merged 13 commits into from
Apr 25, 2024

Conversation

onbjerg
Copy link
Member

@onbjerg onbjerg commented Feb 2, 2024

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 #6996

@onbjerg onbjerg added T-feature Type: feature A-cheatcodes Area: cheatcodes labels Feb 2, 2024
Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@onbjerg onbjerg changed the title Onbjerg/blobhashes cheatcode feat: vm.blobhashes Feb 2, 2024
crates/cheatcodes/src/evm/fork.rs Outdated Show resolved Hide resolved
@onbjerg
Copy link
Member Author

onbjerg commented Feb 2, 2024

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 onbjerg marked this pull request as draft February 2, 2024 16:57
@flyq
Copy link

flyq commented Feb 23, 2024

Is this pr currently blocked?

@onbjerg
Copy link
Member Author

onbjerg commented Feb 23, 2024

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

@Evalir Evalir mentioned this pull request Mar 2, 2024
10 tasks
@mattsse
Copy link
Member

mattsse commented Apr 4, 2024

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

@yash-atreya yash-atreya self-assigned this Apr 25, 2024
@yash-atreya yash-atreya marked this pull request as ready for review April 25, 2024 21:09
@yash-atreya yash-atreya requested a review from klkvr as a code owner April 25, 2024 21:09
@yash-atreya
Copy link
Member

@mattsse ptal

Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

@mattsse mattsse merged commit 19d69f2 into master Apr 25, 2024
19 checks passed
@mattsse mattsse deleted the onbjerg/blobhashes-cheatcode branch April 25, 2024 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-cheatcodes Area: cheatcodes T-feature Type: feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add a cheat code for test blobhash
6 participants