Skip to content

Conversation

phrwlk
Copy link
Contributor

@phrwlk phrwlk commented Oct 20, 2025

  • Replaced code.clone().0.into() with code.clone() in crates/anvil/src/eth/backend/fork.rs
  • Replaced code.0.into() with code in crates/anvil/src/eth/backend/mem/mod.rs
  • Rationale: alloy_primitives::Bytes already matches the target field types; extracting the inner bytes::Bytes and converting back via .into() is unnecessary and obscures intent. Using the original Bytes directly is clearer and avoids redundant wrapping.

@onbjerg onbjerg added this pull request to the merge queue Oct 20, 2025
@onbjerg onbjerg self-assigned this Oct 20, 2025
@DaniPopes DaniPopes removed this pull request from the merge queue due to a manual request Oct 20, 2025
@grandizzy grandizzy enabled auto-merge October 21, 2025 06:06
@grandizzy grandizzy added this pull request to the merge queue Oct 21, 2025
Merged via the queue into foundry-rs:master with commit 11edbc8 Oct 21, 2025
15 checks passed
@github-project-automation github-project-automation bot moved this to Done in Foundry Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants