diff --git a/runtimes/eden/src/migrations.rs b/runtimes/eden/src/migrations.rs index e7f7b381cfd..71dbb2babac 100644 --- a/runtimes/eden/src/migrations.rs +++ b/runtimes/eden/src/migrations.rs @@ -153,7 +153,8 @@ impl OnRuntimeUpgrade for MoveValidatorsSetToInvulnerables { "CollatorSelection::candidacy_bond is {:?}", candidacy_bond ); - let validators: BoundedVec = Decode::decode(&mut state.as_slice()).unwrap(); + let validators: BoundedVec = + Decode::decode(&mut state.as_slice()).map_err(|_| "Failed to decode validators")?; if invulnerables != validators || candidacy_bond != CANDIDACY_BOND { return Err("CollatorSelection::Invulnerables are not the same as ValidatorsSet::Members"); }