no need for finality delay to be an Option<u64>

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

View File

@@ -30,9 +30,9 @@ fn prepare_network<T: Config>(
default_endpoint: sp_std::vec![0x69; m as usize],
gatekeeper,
topic_name,
finality_delay: Some(69),
block_distance: 69,
network_type: NetworkType::Evm,
finality_delay: 69,
block_distance: 69,
incoming_fee: 0,
outgoing_fee: 0,
};
@@ -107,7 +107,7 @@ benchmarks! {
}
update_network_finality_delay {
let delay = Some(1337);
let delay = 1337;
let (chain_id, network) = prepare_network::<T>(1, 1);
let authority = T::UpdateOrigin::try_successful_origin()
.map_err(|_| BenchmarkError::Weightless)?;