update slow claps because of finality delay non-option type

Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
This commit is contained in:
Uncle Stretch
2025-06-19 15:00:30 +03:00
parent 7bb18939bd
commit 818f41d05e
3 changed files with 3 additions and 4 deletions

View File

@@ -723,9 +723,8 @@ impl<T: Config> Pallet<T> {
network_id
)?;
let finality_delay = network_data.finality_delay.unwrap_or_default();
let estimated_block = maybe_new_evm_block
.map(|new_evm_block| new_evm_block.saturating_sub(finality_delay))
.map(|new_evm_block| new_evm_block.saturating_sub(network_data.finality_delay))
.unwrap_or_default();
Ok(match maybe_block_range {