mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-11 21:27:06 +00:00
swap error responses (#6421)
This commit is contained in:
1 parent
01e43131ac
commit
6931a9ab75
1 file changed
+2
-2
@@ -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 =
|
||||
|
||||
Reference in new issue
Block a user