@@ -73,7 +73,7 @@ pub mod pallet {
7373 };
7474 use frame_support::{
7575 dispatch::DispatchResultWithPostInfo, fail, pallet_prelude::*, require_transactional,
76- storage::bounded_btree_map::BoundedBTreeMap, traits::tokens::BalanceStatus, transactional,
76+ storage::bounded_btree_map::BoundedBTreeMap, traits::tokens::BalanceStatus,
7777 };
7878 use frame_system::pallet_prelude::*;
7979 use orml_traits::{MultiCurrency, MultiReservableCurrency};
@@ -279,7 +279,6 @@ pub mod pallet {
279279 /// the option to add a remark, this remark can then be used to run
280280 /// custom logic and trigger alternate payment flows. the specified
281281 /// amount.
282- #[transactional]
283282 #[pallet::weight(T::WeightInfo::pay(T::MaxRemarkLength::get()))]
284283 pub fn pay(
285284 origin: OriginFor<T>,
@@ -314,7 +313,6 @@ pub mod pallet {
314313
315314 /// Release any created payment, this will transfer the reserved amount
316315 /// from the creator of the payment to the assigned recipient
317- #[transactional]
318316 #[pallet::weight(T::WeightInfo::release())]
319317 pub fn release(origin: OriginFor<T>, to: T::AccountId) -> DispatchResultWithPostInfo {
320318 let from = ensure_signed(origin)?;
@@ -333,7 +331,6 @@ pub mod pallet {
333331 /// Cancel a payment in created state, this will release the reserved
334332 /// back to creator of the payment. This extrinsic can only be called by
335333 /// the recipient of the payment
336- #[transactional]
337334 #[pallet::weight(T::WeightInfo::cancel())]
338335 pub fn cancel(origin: OriginFor<T>, creator: T::AccountId) -> DispatchResultWithPostInfo {
339336 let who = ensure_signed(origin)?;
@@ -356,7 +353,6 @@ pub mod pallet {
356353 /// recipient of the payment.
357354 /// This extrinsic allows the assigned judge to
358355 /// cancel/release/partial_release the payment.
359- #[transactional]
360356 #[pallet::weight(T::WeightInfo::resolve_payment())]
361357 pub fn resolve_payment(
362358 origin: OriginFor<T>,
@@ -392,7 +388,6 @@ pub mod pallet {
392388 /// Allow the creator of a payment to initiate a refund that will return
393389 /// the funds after a configured amount of time that the reveiver has to
394390 /// react and opose the request
395- #[transactional]
396391 #[pallet::weight(T::WeightInfo::request_refund())]
397392 pub fn request_refund(origin: OriginFor<T>, recipient: T::AccountId) -> DispatchResultWithPostInfo {
398393 let who = ensure_signed(origin)?;
@@ -440,7 +435,6 @@ pub mod pallet {
440435 /// payment creator This does not cancel the request, instead sends the
441436 /// payment to a NeedsReview state The assigned resolver account can
442437 /// then change the state of the payment after review.
443- #[transactional]
444438 #[pallet::weight(T::WeightInfo::dispute_refund())]
445439 pub fn dispute_refund(origin: OriginFor<T>, creator: T::AccountId) -> DispatchResultWithPostInfo {
446440 use PaymentState::*;
@@ -487,7 +481,6 @@ pub mod pallet {
487481 // using the `accept_and_pay` extrinsic. The payment will be in
488482 // PaymentRequested State and can only be modified by the `accept_and_pay`
489483 // extrinsic.
490- #[transactional]
491484 #[pallet::weight(T::WeightInfo::request_payment())]
492485 pub fn request_payment(
493486 origin: OriginFor<T>,
@@ -516,7 +509,6 @@ pub mod pallet {
516509 // This extrinsic allows the sender to fulfill a payment request created by a
517510 // recipient. The amount will be transferred to the recipient and payment
518511 // removed from storage
519- #[transactional]
520512 #[pallet::weight(T::WeightInfo::accept_and_pay())]
521513 pub fn accept_and_pay(origin: OriginFor<T>, to: T::AccountId) -> DispatchResultWithPostInfo {
522514 let from = ensure_signed(origin)?;
0 commit comments