@@ -251,7 +251,7 @@ pub mod module {
251
251
asset : MultiAsset ,
252
252
dest : MultiLocation ,
253
253
recipient : MultiLocation ,
254
- dest_weight : u64 ,
254
+ dest_weight : Weight ,
255
255
) -> Result < Xcm < T :: Call > , DispatchError > {
256
256
let buy_execution = Self :: buy_execution ( asset. clone ( ) , & dest, dest_weight) ?;
257
257
Ok ( WithdrawAsset {
@@ -269,7 +269,7 @@ pub mod module {
269
269
asset : MultiAsset ,
270
270
reserve : MultiLocation ,
271
271
recipient : MultiLocation ,
272
- dest_weight : u64 ,
272
+ dest_weight : Weight ,
273
273
) -> Result < Xcm < T :: Call > , DispatchError > {
274
274
Ok ( WithdrawAsset {
275
275
assets : asset. clone ( ) . into ( ) ,
@@ -289,7 +289,7 @@ pub mod module {
289
289
reserve : MultiLocation ,
290
290
dest : MultiLocation ,
291
291
recipient : MultiLocation ,
292
- dest_weight : u64 ,
292
+ dest_weight : Weight ,
293
293
) -> Result < Xcm < T :: Call > , DispatchError > {
294
294
let mut reanchored_dest = dest. clone ( ) ;
295
295
if reserve == MultiLocation :: parent ( ) {
@@ -332,7 +332,7 @@ pub mod module {
332
332
}
333
333
}
334
334
335
- fn buy_execution ( asset : MultiAsset , at : & MultiLocation , weight : u64 ) -> Result < Order < ( ) > , DispatchError > {
335
+ fn buy_execution ( asset : MultiAsset , at : & MultiLocation , weight : Weight ) -> Result < Order < ( ) > , DispatchError > {
336
336
let inv_at = T :: LocationInverter :: invert_location ( at) ;
337
337
let fees = asset. reanchored ( & inv_at) . map_err ( |_| Error :: < T > :: CannotReanchor ) ?;
338
338
Ok ( BuyExecution {
0 commit comments