@@ -73,7 +73,7 @@ pub mod pallet {
73
73
} ;
74
74
use frame_support:: {
75
75
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 ,
77
77
} ;
78
78
use frame_system:: pallet_prelude:: * ;
79
79
use orml_traits:: { MultiCurrency , MultiReservableCurrency } ;
@@ -279,7 +279,6 @@ pub mod pallet {
279
279
/// the option to add a remark, this remark can then be used to run
280
280
/// custom logic and trigger alternate payment flows. the specified
281
281
/// amount.
282
- #[ transactional]
283
282
#[ pallet:: weight( T :: WeightInfo :: pay( T :: MaxRemarkLength :: get( ) ) ) ]
284
283
pub fn pay (
285
284
origin : OriginFor < T > ,
@@ -314,7 +313,6 @@ pub mod pallet {
314
313
315
314
/// Release any created payment, this will transfer the reserved amount
316
315
/// from the creator of the payment to the assigned recipient
317
- #[ transactional]
318
316
#[ pallet:: weight( T :: WeightInfo :: release( ) ) ]
319
317
pub fn release ( origin : OriginFor < T > , to : T :: AccountId ) -> DispatchResultWithPostInfo {
320
318
let from = ensure_signed ( origin) ?;
@@ -333,7 +331,6 @@ pub mod pallet {
333
331
/// Cancel a payment in created state, this will release the reserved
334
332
/// back to creator of the payment. This extrinsic can only be called by
335
333
/// the recipient of the payment
336
- #[ transactional]
337
334
#[ pallet:: weight( T :: WeightInfo :: cancel( ) ) ]
338
335
pub fn cancel ( origin : OriginFor < T > , creator : T :: AccountId ) -> DispatchResultWithPostInfo {
339
336
let who = ensure_signed ( origin) ?;
@@ -356,7 +353,6 @@ pub mod pallet {
356
353
/// recipient of the payment.
357
354
/// This extrinsic allows the assigned judge to
358
355
/// cancel/release/partial_release the payment.
359
- #[ transactional]
360
356
#[ pallet:: weight( T :: WeightInfo :: resolve_payment( ) ) ]
361
357
pub fn resolve_payment (
362
358
origin : OriginFor < T > ,
@@ -392,7 +388,6 @@ pub mod pallet {
392
388
/// Allow the creator of a payment to initiate a refund that will return
393
389
/// the funds after a configured amount of time that the reveiver has to
394
390
/// react and opose the request
395
- #[ transactional]
396
391
#[ pallet:: weight( T :: WeightInfo :: request_refund( ) ) ]
397
392
pub fn request_refund ( origin : OriginFor < T > , recipient : T :: AccountId ) -> DispatchResultWithPostInfo {
398
393
let who = ensure_signed ( origin) ?;
@@ -440,7 +435,6 @@ pub mod pallet {
440
435
/// payment creator This does not cancel the request, instead sends the
441
436
/// payment to a NeedsReview state The assigned resolver account can
442
437
/// then change the state of the payment after review.
443
- #[ transactional]
444
438
#[ pallet:: weight( T :: WeightInfo :: dispute_refund( ) ) ]
445
439
pub fn dispute_refund ( origin : OriginFor < T > , creator : T :: AccountId ) -> DispatchResultWithPostInfo {
446
440
use PaymentState :: * ;
@@ -487,7 +481,6 @@ pub mod pallet {
487
481
// using the `accept_and_pay` extrinsic. The payment will be in
488
482
// PaymentRequested State and can only be modified by the `accept_and_pay`
489
483
// extrinsic.
490
- #[ transactional]
491
484
#[ pallet:: weight( T :: WeightInfo :: request_payment( ) ) ]
492
485
pub fn request_payment (
493
486
origin : OriginFor < T > ,
@@ -516,7 +509,6 @@ pub mod pallet {
516
509
// This extrinsic allows the sender to fulfill a payment request created by a
517
510
// recipient. The amount will be transferred to the recipient and payment
518
511
// removed from storage
519
- #[ transactional]
520
512
#[ pallet:: weight( T :: WeightInfo :: accept_and_pay( ) ) ]
521
513
pub fn accept_and_pay ( origin : OriginFor < T > , to : T :: AccountId ) -> DispatchResultWithPostInfo {
522
514
let from = ensure_signed ( origin) ?;
0 commit comments