Skip to content

bump: alloy + revm + alloy-evm #10454

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

Draft
wants to merge 16 commits into
base: zerosnacks/revm-bump-2
Choose a base branch
from

Conversation

yash-atreya
Copy link
Member

@yash-atreya yash-atreya commented May 7, 2025

Motivation

Builds on #10183

Bumps

  • alloy-core 1.0
  • revm 22
  • alloy-evm 0.6
  • alloy 0.15
  • rand 9 + rand_08 + rand_chacha workaround

Unblocks #10411

Solution

Uses the following patches:

block-explorers - foundry-rs/block-explorers#86
compilers - foundry-rs/compilers#263
fork-db - foundry-rs/foundry-fork-db#46

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

Comment on lines +1160 to +1165
// Prop test uses rand 8 whereas alloy-core has been bumped to rand 9
// self.test_runner().rng()
self.rng.get_or_insert_with(|| match self.config.seed {
Some(seed) => ChaChaRng::from_seed(seed.to_be_bytes::<32>()),
None => ChaChaRng::from_os_rng(),
})
Copy link
Member Author

Choose a reason for hiding this comment

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

Adds a temp rng field to Cheatcodes to generate random values with the given seed

This is a workaround as proptest still uses rand 8.

cc @DaniPopes @mattsse

mattsse pushed a commit to foundry-rs/compilers that referenced this pull request May 7, 2025
mattsse pushed a commit to foundry-rs/block-explorers that referenced this pull request May 7, 2025
@zerosnacks
Copy link
Member

lgtm!

RE: rand 8 / rand 9

it does effect random cheatcodes we added for kontrol, they'll be getting different fuzzed inputs if set to a certain seed, but they're still going to be deterministic

if we highlight this in the changelog this is fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants