Skip to content

Commit

Permalink
Add transactional macro for claim deposit
Browse files Browse the repository at this point in the history
  • Loading branch information
Gauthamastro committed Nov 4, 2023
1 parent ee3b6b2 commit c341eb4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pallets/thea-executor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,7 @@ pub trait WeightInfo {
#[frame_support::pallet]
pub mod pallet {
use super::*;
use frame_support::{
pallet_prelude::*,
sp_runtime::SaturatedConversion,
traits::{fungible::Mutate, fungibles::Inspect, tokens::Preservation},
};
use frame_support::{pallet_prelude::*, sp_runtime::SaturatedConversion, traits::{fungible::Mutate, fungibles::Inspect, tokens::Preservation}, transactional};
use frame_system::pallet_prelude::*;
use pallet_asset_conversion::Swap;
use polkadex_primitives::Resolver;
Expand Down Expand Up @@ -258,6 +254,7 @@ pub mod pallet {
/// (it's used to parametrise the weight of this extrinsic).
#[pallet::call_index(1)]
#[pallet::weight(<T as Config>::WeightInfo::claim_deposit(1))]
#[transactional]
pub fn claim_deposit(
origin: OriginFor<T>,
num_deposits: u32,
Expand Down

0 comments on commit c341eb4

Please sign in to comment.