File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -387,7 +387,6 @@ pub mod module {
387
387
) -> DispatchResult {
388
388
let who = ensure_signed ( origin) ?;
389
389
let assets: MultiAssets = ( * assets) . try_into ( ) . map_err ( |( ) | Error :: < T > :: BadVersion ) ?;
390
- ensure ! ( assets. len( ) <= MAX_ASSETS_FOR_TRANSFER , Error :: <T >:: TooManyAssets ) ;
391
390
let dest: MultiLocation = ( * dest) . try_into ( ) . map_err ( |( ) | Error :: < T > :: BadVersion ) ?;
392
391
393
392
// We first grab the fee
@@ -558,6 +557,9 @@ pub mod module {
558
557
dest_weight : Weight ,
559
558
deposit_event : bool ,
560
559
) -> DispatchResult {
560
+ ensure ! ( assets. len( ) <= MAX_ASSETS_FOR_TRANSFER , Error :: <T >:: TooManyAssets ) ;
561
+
562
+ // We check that all assets are valid and share the same reserve
561
563
for i in 0 ..assets. clone ( ) . len ( ) {
562
564
let asset = assets. get ( i) . ok_or ( Error :: < T > :: Empty ) ?;
563
565
if !asset. is_fungible ( None ) {
You can’t perform that action at this time.
0 commit comments