Skip to content

Commit

Permalink
Fix a couple little bugs I introduced into the parachain piece when s…
Browse files Browse the repository at this point in the history
…witching to an eviction workflow.
  • Loading branch information
JoshOrndorff committed Mar 20, 2024
1 parent 5b6a0ce commit c291bad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wardrobe/parachain/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ impl<T: ParachainPieceConfig + 'static> SimpleConstraintChecker for SetParachain
!evicted_input_data.is_empty(),
Self::Error::MissingPreviousInfo
);
ensure!(input_data.len() == 1, Self::Error::ExtraInputs);
let previous: ParachainInherentData = input_data[0]
ensure!(evicted_input_data.len() == 1, Self::Error::ExtraInputs);
let previous: ParachainInherentData = evicted_input_data[0]
.extract::<ParachainInherentDataUtxo>()
.map_err(|_| Self::Error::BadlyTyped)?
.into();
Expand Down

0 comments on commit c291bad

Please sign in to comment.