Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jiguantong committed Jul 6, 2022
1 parent 94b9ff8 commit 7f78a91
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions modules/fee-market/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ use frame_support::{
ensure,
pallet_prelude::*,
traits::{Currency, Get, LockIdentifier, LockableCurrency, WithdrawReasons},
transactional, PalletId,
PalletId,
};
use frame_system::{ensure_signed, pallet_prelude::*};
use sp_runtime::{
Expand Down Expand Up @@ -209,7 +209,6 @@ pub mod pallet {
/// the default value is MinimumRelayFee in runtime. (Update market needed)
/// Note: One account can enroll only once.
#[pallet::weight(<T as Config<I>>::WeightInfo::enroll_and_lock_collateral())]
#[transactional]
pub fn enroll_and_lock_collateral(
origin: OriginFor<T>,
lock_collateral: BalanceOf<T, I>,
Expand Down Expand Up @@ -255,7 +254,6 @@ pub mod pallet {
/// Update locked collateral for enrolled relayer, only supporting lock more. (Update market
/// needed)
#[pallet::weight(<T as Config<I>>::WeightInfo::update_locked_collateral())]
#[transactional]
pub fn update_locked_collateral(
origin: OriginFor<T>,
new_collateral: BalanceOf<T, I>,
Expand Down Expand Up @@ -308,7 +306,6 @@ pub mod pallet {

/// Update relay fee for enrolled relayer. (Update market needed)
#[pallet::weight(<T as Config<I>>::WeightInfo::update_relay_fee())]
#[transactional]
pub fn update_relay_fee(origin: OriginFor<T>, new_fee: BalanceOf<T, I>) -> DispatchResult {
let who = ensure_signed(origin)?;
ensure!(Self::is_enrolled(&who), <Error<T, I>>::NotEnrolled);
Expand All @@ -329,7 +326,6 @@ pub mod pallet {

/// Cancel enrolled relayer(Update market needed)
#[pallet::weight(<T as Config<I>>::WeightInfo::cancel_enrollment())]
#[transactional]
pub fn cancel_enrollment(origin: OriginFor<T>) -> DispatchResult {
let who = ensure_signed(origin)?;
ensure!(Self::is_enrolled(&who), <Error<T, I>>::NotEnrolled);
Expand Down Expand Up @@ -357,7 +353,6 @@ pub mod pallet {
}

#[pallet::weight(<T as Config<I>>::WeightInfo::set_slash_protect())]
#[transactional]
pub fn set_slash_protect(
origin: OriginFor<T>,
slash_protect: BalanceOf<T, I>,
Expand All @@ -369,7 +364,6 @@ pub mod pallet {
}

#[pallet::weight(<T as Config<I>>::WeightInfo::set_assigned_relayers_number())]
#[transactional]
pub fn set_assigned_relayers_number(origin: OriginFor<T>, number: u32) -> DispatchResult {
ensure_root(origin)?;

Expand Down

0 comments on commit 7f78a91

Please sign in to comment.