swap error responses (#6421)

This commit is contained in:
joe petrowski
2022-12-13 09:32:27 +01:00
committed by GitHub
parent 01e43131ac
commit 6931a9ab75
+2 -2
View File
@@ -1149,11 +1149,11 @@ impl<T: Config> Pallet<T> {
let channel_id = HrmpChannelId { sender: origin, recipient };
ensure!(
<Self as Store>::HrmpOpenChannelRequests::get(&channel_id).is_none(),
Error::<T>::OpenHrmpChannelAlreadyExists,
Error::<T>::OpenHrmpChannelAlreadyRequested,
);
ensure!(
<Self as Store>::HrmpChannels::get(&channel_id).is_none(),
Error::<T>::OpenHrmpChannelAlreadyRequested,
Error::<T>::OpenHrmpChannelAlreadyExists,
);
let egress_cnt =