From d034cb89ebec59c2685d9f87fe71f5a3fe9503a9 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Tue, 30 Jul 2024 19:36:28 +0200 Subject: [PATCH] fix --- bridges/snowbridge/runtime/test-common/src/lib.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bridges/snowbridge/runtime/test-common/src/lib.rs b/bridges/snowbridge/runtime/test-common/src/lib.rs index 2b5bfb8ff431..b157ad4356bd 100644 --- a/bridges/snowbridge/runtime/test-common/src/lib.rs +++ b/bridges/snowbridge/runtime/test-common/src/lib.rs @@ -551,10 +551,7 @@ pub fn ethereum_extrinsic( let gap = ::FreeHeadersInterval::get(); // Large enough header gap is free - if gap.is_some() && - update.finalized_header.slot >= - initial_checkpoint.header.slot + gap.unwrap() as u64 - { + if update.finalized_header.slot >= initial_checkpoint.header.slot + gap as u64 { assert!(balance_after_checkpoint == balance_after_update); } else { // Otherwise paid