Skip to content

Commit f22500c

Browse files
committed
Merge master branch
Signed-off-by: Dengjianping <[email protected]>
2 parents 32bb4c9 + 9e041dc commit f22500c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

xtokens/src/lib.rs

+5
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,11 @@ pub mod module {
454454
dest: MultiLocation,
455455
dest_weight: Weight,
456456
) -> DispatchResult {
457+
ensure!(
458+
currencies.len() <= T::MaxAssetsForTransfer::get(),
459+
Error::<T>::TooManyAssetsBeingSent
460+
);
461+
457462
let mut assets = MultiAssets::new();
458463

459464
// Lets grab the fee amount and location first

0 commit comments

Comments
 (0)