Skip to content

Commit 69cfa2e

Browse files
committed
revert
1 parent 9617c1c commit 69cfa2e

File tree

1 file changed

+8
-1
lines changed
  • modules/pallets/xcm-gateway/src

1 file changed

+8
-1
lines changed

modules/pallets/xcm-gateway/src/lib.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,14 @@ where
419419
Box::new(TransferType::DestinationReserve),
420420
Box::new(VersionedXcm::from(custom_xcm_on_dest)),
421421
weight_limit,
422-
).unwrap();
422+
).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+
})?;
423430

424431
Pallet::<T>::deposit_event(Event::<T>::AssetReceived {
425432
beneficiary: body.to.0.into(),

0 commit comments

Comments
 (0)