mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
primitives: use EMPTY_OMMER_ROOT_HASH const when possible (#11833)
This commit is contained in:
@ -300,7 +300,7 @@ pub fn validate_against_parent_4844(
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use alloy_consensus::{TxEip4844, EMPTY_ROOT_HASH};
|
||||
use alloy_consensus::{TxEip4844, EMPTY_OMMER_ROOT_HASH, EMPTY_ROOT_HASH};
|
||||
use alloy_primitives::{
|
||||
hex_literal::hex, Address, BlockHash, BlockNumber, Bytes, Parity, Sealable, U256,
|
||||
};
|
||||
@ -441,7 +441,7 @@ mod tests {
|
||||
|
||||
let header = Header {
|
||||
parent_hash: hex!("859fad46e75d9be177c2584843501f2270c7e5231711e90848290d12d7c6dcdd").into(),
|
||||
ommers_hash: hex!("1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347").into(),
|
||||
ommers_hash: EMPTY_OMMER_ROOT_HASH,
|
||||
beneficiary: hex!("4675c7e5baafbffbca748158becba61ef3b0a263").into(),
|
||||
state_root: hex!("8337403406e368b3e40411138f4868f79f6d835825d55fd0c2f6e17b1a3948e9").into(),
|
||||
transactions_root: EMPTY_ROOT_HASH,
|
||||
|
||||
Reference in New Issue
Block a user