diff --git a/crates/types/src/offchain/rollup_context.rs b/crates/types/src/offchain/rollup_context.rs index d575a42aa..5f2e9479a 100644 --- a/crates/types/src/offchain/rollup_context.rs +++ b/crates/types/src/offchain/rollup_context.rs @@ -1,5 +1,4 @@ use crate::core::Timepoint; -use crate::finality::finality_as_blocks; use crate::packed::{GlobalState, RollupConfig}; use crate::prelude::Unpack; use sparse_merkle_tree::H256; @@ -57,7 +56,7 @@ impl CompatibleFinalizedTimepoint { }, Timepoint::Timestamp(finalized_timestamp) => { let global_block_number = global_state.block().count().unpack().saturating_sub(1); - let finality_as_blocks = finality_as_blocks(rollup_config_finality); + let finality_as_blocks = rollup_config_finality; Self { finalized_timestamp: Some(finalized_timestamp), finalized_block_number: global_block_number.saturating_sub(finality_as_blocks), @@ -68,7 +67,7 @@ impl CompatibleFinalizedTimepoint { // Test use only! pub fn from_block_number(block_number: u64, rollup_config_finality: u64) -> Self { - let finality_as_blocks = finality_as_blocks(rollup_config_finality); + let finality_as_blocks = rollup_config_finality; Self { finalized_timestamp: None, finalized_block_number: block_number.saturating_sub(finality_as_blocks),