Skip to content

Commit

Permalink
Merge pull request #2185 from subspace/pay_fees
Browse files Browse the repository at this point in the history
ensure root user pays fees channel create and close extrinsics
  • Loading branch information
vedhavyas authored Oct 31, 2023
2 parents 2471285 + 2d9cec0 commit 678e812
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 678e812

Please sign in to comment.