Skip to content
Snippets Groups Projects
Commit 6931a9ab authored by joe petrowski's avatar joe petrowski Committed by GitHub
Browse files

swap error responses (#6421)

parent 01e43131
No related merge requests found
......@@ -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 =
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment