Skip to content

fix: alloy-trie breaking change #260

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

Merged
merged 1 commit into from
Jun 27, 2025
Merged

fix: alloy-trie breaking change #260

merged 1 commit into from
Jun 27, 2025

Conversation

lightsing
Copy link
Member

@lightsing lightsing commented Jun 27, 2025

alloy-genesis <1.0.13 depends on alloy-tire ^0.8, while alloy-genesis 1.0.13 depends on alloy-tire ^0.9, cause compile faills.

error[E0277]: the trait bound `alloy_trie::TrieAccount: From<GenesisAccount>` is not satisfied
  --> /Users/hhq/.cargo/git/checkouts/reth-2db26ef50c906bfe/57b05a8/crates/chainspec/src/spec.rs:74:21
   |
74 |         state_root: state_root_ref_unhashed(&genesis.alloc),
   |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `From<GenesisAccount>` is not implemented for `alloy_trie::TrieAccount`
   |
   = note: required for `GenesisAccount` to implement `Into<alloy_trie::TrieAccount>`
note: required by a bound in `alloy_trie::root::state_root_ref_unhashed`
  --> /Users/hhq/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/alloy-trie-0.8.1/src/root.rs:92:43
   |
92 |     pub fn state_root_ref_unhashed<'a, A: Into<TrieAccount> + Clone + 'a>(
   |                                           ^^^^^^^^^^^^^^^^^ required by this bound in `state_root_ref_unhashed`

For more information about this error, try `rustc --explain E0277`.

@lightsing lightsing changed the title fix: dependencies breaking change fix: alloy-trie breaking change Jun 27, 2025
Copy link

codspeed-hq bot commented Jun 27, 2025

CodSpeed Performance Report

Merging #260 will not alter performance

Comparing fix/alloy-trie (e93d1bf) with scroll (57b05a8)

Summary

✅ 77 untouched benchmarks

@lightsing lightsing merged commit 554b60b into scroll Jun 27, 2025
47 checks passed
@lightsing lightsing deleted the fix/alloy-trie branch June 27, 2025 04:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants