mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 21:01:02 +00:00
swap error responses (#6421)
This commit is contained in:
@@ -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