primitives: use alloy MAINNET_GENESIS_HASH constant (#11848)

This commit is contained in:
Thomas Coratger
2024-10-17 21:44:04 +02:00
committed by GitHub
parent 52848a352a
commit a6c8bda029
14 changed files with 29 additions and 33 deletions

View File

@@ -42,6 +42,7 @@ tracing.workspace = true
[dev-dependencies]
reth-primitives-traits.workspace = true
reth-provider = { workspace = true, features = ["test-utils"] }
alloy-consensus.workspace = true
[lints]
workspace = true

View File

@@ -581,6 +581,7 @@ struct GenesisAccountWithAddress {
#[cfg(test)]
mod tests {
use super::*;
use alloy_consensus::constants::MAINNET_GENESIS_HASH;
use alloy_genesis::Genesis;
use reth_chainspec::{Chain, ChainSpec, HOLESKY, MAINNET, SEPOLIA};
use reth_db::DatabaseEnv;
@@ -591,7 +592,7 @@ mod tests {
transaction::DbTx,
Database,
};
use reth_primitives::{HOLESKY_GENESIS_HASH, MAINNET_GENESIS_HASH, SEPOLIA_GENESIS_HASH};
use reth_primitives::{HOLESKY_GENESIS_HASH, SEPOLIA_GENESIS_HASH};
use reth_primitives_traits::IntegerList;
use reth_provider::{
test_utils::{create_test_provider_factory_with_chain_spec, MockNodeTypesWithDB},