Skip to content

Commit

Permalink
restore expect
Browse files Browse the repository at this point in the history
  • Loading branch information
lemunozm committed Oct 16, 2023
1 parent 4b159c5 commit 5d056ab
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions runtime/integration-tests/src/generic/envs/fudge_env/handle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,21 +129,21 @@ pub trait FudgeHandle<T: Runtime> {
) -> RelaychainBuilder<Self::RelayConstructApi, Self::RelayRuntime> {
sp_tracing::enter_span!(sp_tracing::Level::INFO, "Relay - StartUp");

let code = Self::RELAY_CODE.unwrap();
let code = Self::RELAY_CODE.expect("ESSENTIAL: WASM is built.");
let mut state = StateProvider::new(code);

state.insert_storage(
polkadot_runtime_parachains::configuration::GenesisConfig::<Self::RelayRuntime>::default()
.build_storage()
.unwrap()
.expect("ESSENTIAL: GenesisBuild must not fail at this stage.")
);

state.insert_storage(
frame_system::GenesisConfig {
code: code.to_vec(),
}
.build_storage::<Self::RelayRuntime>()
.unwrap(),
.expect("ESSENTIAL: GenesisBuild must not fail at this stage."),
);

state.insert_storage(storage);
Expand Down Expand Up @@ -195,22 +195,22 @@ pub trait FudgeHandle<T: Runtime> {
) -> ParachainBuilder<T::Block, Self::ParachainConstructApi> {
sp_tracing::enter_span!(sp_tracing::Level::INFO, "Centrifuge - StartUp");

let code = Self::PARACHAIN_CODE.unwrap();
let code = Self::PARACHAIN_CODE.expect("ESSENTIAL: WASM is built.");
let mut state = StateProvider::new(code);

state.insert_storage(
frame_system::GenesisConfig {
code: code.to_vec(),
}
.build_storage::<T>()
.unwrap(),
.expect("ESSENTIAL: GenesisBuild must not fail at this stage."),
);
state.insert_storage(
pallet_aura::GenesisConfig::<T> {
authorities: vec![AuraId::from(sp_core::sr25519::Public([0u8; 32]))],
}
.build_storage()
.unwrap(),
.expect("ESSENTIAL: GenesisBuild must not fail at this stage."),
);

state.insert_storage(storage);
Expand Down

0 comments on commit 5d056ab

Please sign in to comment.