Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
claravanstaden committed Jul 30, 2024
1 parent e3281f8 commit d034cb8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions bridges/snowbridge/runtime/test-common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -551,10 +551,7 @@ pub fn ethereum_extrinsic<Runtime>(
let gap =
<Runtime as snowbridge_pallet_ethereum_client::Config>::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
Expand Down

0 comments on commit d034cb8

Please sign in to comment.