@@ -543,6 +543,13 @@ impl<T: Config> XcmHelper<T, BalanceOf<T>, AccountIdOf<T>> for Pallet<T> {
543
543
xcm_weight_fee_misc. fee,
544
544
) ?;
545
545
546
+ let query_id = Self :: report_outcome_notify(
547
+ & mut msg,
548
+ MultiLocation :: parent( ) ,
549
+ notify,
550
+ T :: NotifyTimeout :: get( ) ,
551
+ ) ?;
552
+
546
553
let call = RelaychainCall :: <T >:: Proxy ( Box :: new( ProxyCall :: Proxy ( ProxyProxyCall {
547
554
real,
548
555
force_proxy_type: None ,
@@ -554,14 +561,6 @@ impl<T: Config> XcmHelper<T, BalanceOf<T>, AccountIdOf<T>> for Pallet<T> {
554
561
} ,
555
562
) ) ,
556
563
} ) ) ) ;
557
-
558
- let query_id = Self :: report_outcome_notify(
559
- & mut msg,
560
- MultiLocation :: parent( ) ,
561
- notify,
562
- T :: NotifyTimeout :: get( ) ,
563
- ) ?;
564
-
565
564
Self :: append_transact( & mut msg, call. encode( ) . into( ) , xcm_weight_fee_misc. weight) ;
566
565
567
566
if let Err ( _e) = send_xcm:: <T :: XcmSender >( MultiLocation :: parent( ) , msg) {
@@ -594,6 +593,14 @@ impl<T: Config> XcmHelper<T, BalanceOf<T>, AccountIdOf<T>> for Pallet<T> {
594
593
Self :: refund_location( ) ,
595
594
xcm_weight_fee_misc. fee,
596
595
) ?;
596
+
597
+ let query_id = Self :: report_outcome_notify(
598
+ & mut msg,
599
+ MultiLocation :: parent( ) ,
600
+ notify,
601
+ T :: NotifyTimeout :: get( ) ,
602
+ ) ?;
603
+
597
604
let call = RelaychainCall :: <T >:: Utility ( Box :: new( UtilityCall :: AsDerivative (
598
605
UtilityAsDerivativeCall {
599
606
index,
@@ -604,14 +611,6 @@ impl<T: Config> XcmHelper<T, BalanceOf<T>, AccountIdOf<T>> for Pallet<T> {
604
611
} ) ) ,
605
612
} ,
606
613
) ) ) ;
607
-
608
- let query_id = Self :: report_outcome_notify(
609
- & mut msg,
610
- MultiLocation :: parent( ) ,
611
- notify,
612
- T :: NotifyTimeout :: get( ) ,
613
- ) ?;
614
-
615
614
Self :: append_transact( & mut msg, call. encode( ) . into( ) , xcm_weight_fee_misc. weight) ;
616
615
617
616
if let Err ( _err) = send_xcm:: <T :: XcmSender >( MultiLocation :: parent( ) , msg) {
@@ -644,6 +643,13 @@ impl<T: Config> XcmHelper<T, BalanceOf<T>, AccountIdOf<T>> for Pallet<T> {
644
643
xcm_weight_fee_misc. fee,
645
644
) ?;
646
645
646
+ let query_id = Self :: report_outcome_notify(
647
+ & mut msg,
648
+ MultiLocation :: parent( ) ,
649
+ notify,
650
+ T :: NotifyTimeout :: get( ) ,
651
+ ) ?;
652
+
647
653
let call = RelaychainCall :: <T >:: Utility ( Box :: new( UtilityCall :: AsDerivative (
648
654
UtilityAsDerivativeCall {
649
655
index,
@@ -652,14 +658,6 @@ impl<T: Config> XcmHelper<T, BalanceOf<T>, AccountIdOf<T>> for Pallet<T> {
652
658
) ) ,
653
659
} ,
654
660
) ) ) ;
655
-
656
- let query_id = Self :: report_outcome_notify(
657
- & mut msg,
658
- MultiLocation :: parent( ) ,
659
- notify,
660
- T :: NotifyTimeout :: get( ) ,
661
- ) ?;
662
-
663
661
Self :: append_transact( & mut msg, call. encode( ) . into( ) , xcm_weight_fee_misc. weight) ;
664
662
665
663
if let Err ( _err) = send_xcm:: <T :: XcmSender >( MultiLocation :: parent( ) , msg) {
@@ -770,6 +768,13 @@ impl<T: Config> XcmHelper<T, BalanceOf<T>, AccountIdOf<T>> for Pallet<T> {
770
768
xcm_weight_fee_misc. fee,
771
769
) ?;
772
770
771
+ let query_id = Self :: report_outcome_notify(
772
+ & mut msg,
773
+ MultiLocation :: parent( ) ,
774
+ notify,
775
+ T :: NotifyTimeout :: get( ) ,
776
+ ) ?;
777
+
773
778
let call = RelaychainCall :: Utility ( Box :: new( UtilityCall :: AsDerivative (
774
779
UtilityAsDerivativeCall {
775
780
index,
@@ -781,14 +786,6 @@ impl<T: Config> XcmHelper<T, BalanceOf<T>, AccountIdOf<T>> for Pallet<T> {
781
786
) ) ,
782
787
} ,
783
788
) ) ) ;
784
-
785
- let query_id = Self :: report_outcome_notify(
786
- & mut msg,
787
- MultiLocation :: parent( ) ,
788
- notify,
789
- T :: NotifyTimeout :: get( ) ,
790
- ) ?;
791
-
792
789
Self :: append_transact( & mut msg, call. encode( ) . into( ) , xcm_weight_fee_misc. weight) ;
793
790
794
791
if let Err ( _err) = send_xcm:: <T :: XcmSender >( MultiLocation :: parent( ) , msg) {
0 commit comments