Skip to content
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

chore: rm cfg imports #12518

Merged
merged 1 commit into from
Nov 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions crates/primitives-traits/src/header/sealed.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
use crate::InMemorySize;

use super::Header;
use crate::InMemorySize;
use alloy_consensus::Sealed;
use alloy_eips::BlockNumHash;
use alloy_primitives::{keccak256, BlockHash, Sealable};
#[cfg(any(test, feature = "test-utils"))]
use alloy_primitives::{BlockNumber, B256, U256};
use alloy_rlp::{Decodable, Encodable};
use bytes::BufMut;
use core::mem;
Expand Down Expand Up @@ -130,17 +127,17 @@ impl SealedHeader {
}

/// Updates the block number.
pub fn set_block_number(&mut self, number: BlockNumber) {
pub fn set_block_number(&mut self, number: alloy_primitives::BlockNumber) {
self.header.number = number;
}

/// Updates the block state root.
pub fn set_state_root(&mut self, state_root: B256) {
pub fn set_state_root(&mut self, state_root: alloy_primitives::B256) {
self.header.state_root = state_root;
}

/// Updates the block difficulty.
pub fn set_difficulty(&mut self, difficulty: U256) {
pub fn set_difficulty(&mut self, difficulty: alloy_primitives::U256) {
self.header.difficulty = difficulty;
}
}
Expand Down
Loading