We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9617c1c commit 69cfa2eCopy full SHA for 69cfa2e
modules/pallets/xcm-gateway/src/lib.rs
@@ -419,7 +419,14 @@ where
419
Box::new(TransferType::DestinationReserve),
420
Box::new(VersionedXcm::from(custom_xcm_on_dest)),
421
weight_limit,
422
- ).unwrap();
+ ).map_err(|_| ismp::error::Error::ModuleDispatchError {
423
+ msg: "Token Gateway: Failed execute xcm to relay chain".to_string(),
424
+ meta: Meta {
425
+ source: request.source_chain(),
426
+ dest: request.dest_chain(),
427
+ nonce: request.nonce(),
428
+ },
429
+ })?;
430
431
Pallet::<T>::deposit_event(Event::<T>::AssetReceived {
432
beneficiary: body.to.0.into(),
0 commit comments