mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore(primitives): use alloy eth conversion constants (#11892)
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
use alloy_consensus::constants::ETH_TO_WEI;
|
||||
use alloy_primitives::{BlockNumber, U256};
|
||||
use reth_chainspec::{EthereumHardfork, Hardforks};
|
||||
use reth_primitives::constants::ETH_TO_WEI;
|
||||
|
||||
/// Calculates the base block reward.
|
||||
///
|
||||
@ -57,7 +57,7 @@ pub fn base_block_reward_pre_merge(chain_spec: impl Hardforks, block_number: Blo
|
||||
/// ```
|
||||
/// # use reth_chainspec::MAINNET;
|
||||
/// # use reth_consensus_common::calc::{base_block_reward, block_reward};
|
||||
/// # use reth_primitives::constants::ETH_TO_WEI;
|
||||
/// # use alloy_consensus::constants::ETH_TO_WEI;
|
||||
/// # use alloy_primitives::U256;
|
||||
/// #
|
||||
/// // This is block 126 on mainnet.
|
||||
|
||||
Reference in New Issue
Block a user