mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: use new ChainHardforks type on ChainSpec (#9065)
This commit is contained in:
@ -415,7 +415,7 @@ mod tests {
|
||||
use alloy_rlp::{Decodable, Encodable};
|
||||
use enr::EnrKey;
|
||||
use reth_chainspec::MAINNET;
|
||||
use reth_ethereum_forks::{ForkHash, Hardfork};
|
||||
use reth_ethereum_forks::{EthereumHardfork, ForkHash};
|
||||
use secp256k1::rand::thread_rng;
|
||||
use std::{future::poll_fn, net::Ipv4Addr};
|
||||
|
||||
@ -513,7 +513,7 @@ mod tests {
|
||||
resolver.insert(link.domain.clone(), root.to_string());
|
||||
|
||||
let mut builder = Enr::builder();
|
||||
let fork_id = MAINNET.hardfork_fork_id(Hardfork::Frontier).unwrap();
|
||||
let fork_id = MAINNET.hardfork_fork_id(EthereumHardfork::Frontier).unwrap();
|
||||
builder
|
||||
.ip4(Ipv4Addr::LOCALHOST)
|
||||
.udp4(30303)
|
||||
|
||||
Reference in New Issue
Block a user