Skip to content

Commit

Permalink
ensure root user pays fees channel create and close extrinsics
Browse files Browse the repository at this point in the history
  • Loading branch information
vedhavyas committed Oct 31, 2023
1 parent 2471285 commit 2d9cec0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions domains/pallets/messenger/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ mod pallet {
/// Channel is set to initiated and do not accept or receive any messages.
/// Only a root user can create the channel.
#[pallet::call_index(0)]
#[pallet::weight((T::WeightInfo::initiate_channel(), Pays::No))]
#[pallet::weight(T::WeightInfo::initiate_channel())]
pub fn initiate_channel(
origin: OriginFor<T>,
dst_chain_id: ChainId,
Expand Down Expand Up @@ -476,7 +476,7 @@ mod pallet {
/// Channel is set to Closed and do not accept or receive any messages.
/// Only a root user can close an open channel.
#[pallet::call_index(1)]
#[pallet::weight((T::WeightInfo::close_channel(), Pays::No))]
#[pallet::weight(T::WeightInfo::close_channel())]
pub fn close_channel(
origin: OriginFor<T>,
chain_id: ChainId,
Expand Down

0 comments on commit 2d9cec0

Please sign in to comment.