1919use super :: {
2020 super :: v0:: Order as Order0 , MultiAsset , MultiAssetFilter , MultiAssets , MultiLocation , Xcm ,
2121} ;
22- use alloc:: { vec, vec :: Vec } ;
22+ use alloc:: vec:: Vec ;
2323use core:: {
2424 convert:: { TryFrom , TryInto } ,
2525 result,
@@ -140,8 +140,6 @@ pub enum Order<Call> {
140140 /// any surrounding operations/orders.
141141 /// - `halt_on_error`: If `true`, the execution of the `orders` and `operations` will halt on the first failure. If
142142 /// `false`, then execution will continue regardless.
143- /// - `orders`: Orders to be executed with the existing Holding Register; execution of these orders happens PRIOR to
144- /// execution of the `operations`. The (shallow) weight for these must be paid for with the `weight` purchased.
145143 /// - `instructions`: XCM instructions to be executed outside of the context of the current Holding Register;
146144 /// execution of these instructions happens AFTER the execution of the `orders`. The (shallow) weight for these
147145 /// must be paid for with the `weight` purchased.
@@ -152,7 +150,6 @@ pub enum Order<Call> {
152150 weight : u64 ,
153151 debt : u64 ,
154152 halt_on_error : bool ,
155- orders : Vec < Order < Call > > ,
156153 instructions : Vec < Xcm < Call > > ,
157154 } ,
158155}
@@ -179,10 +176,9 @@ impl<Call> Order<Call> {
179176 InitiateTeleport { assets, dest, effects } =>
180177 InitiateTeleport { assets, dest, effects } ,
181178 QueryHolding { query_id, dest, assets } => QueryHolding { query_id, dest, assets } ,
182- BuyExecution { fees, weight, debt, halt_on_error, orders, instructions } => {
183- let orders = orders. into_iter ( ) . map ( Order :: from) . collect ( ) ;
179+ BuyExecution { fees, weight, debt, halt_on_error, instructions } => {
184180 let instructions = instructions. into_iter ( ) . map ( Xcm :: from) . collect ( ) ;
185- BuyExecution { fees, weight, debt, halt_on_error, orders , instructions }
181+ BuyExecution { fees, weight, debt, halt_on_error, instructions }
186182 } ,
187183 }
188184 }
@@ -232,14 +228,7 @@ impl<Call> TryFrom<Order0<Call>> for Order<Call> {
232228 Order0 :: BuyExecution { fees, weight, debt, halt_on_error, xcm } => {
233229 let instructions =
234230 xcm. into_iter ( ) . map ( Xcm :: < Call > :: try_from) . collect :: < result:: Result < _ , _ > > ( ) ?;
235- BuyExecution {
236- fees : fees. try_into ( ) ?,
237- weight,
238- debt,
239- halt_on_error,
240- orders : vec ! [ ] ,
241- instructions,
242- }
231+ BuyExecution { fees : fees. try_into ( ) ?, weight, debt, halt_on_error, instructions }
243232 } ,
244233 } )
245234 }
0 commit comments