Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Removed unnecessary clone
  • Loading branch information
bkontur committed Oct 12, 2022
commit f317849e3876cdaaa7ba37bb61617c29c6a93b8c
2 changes: 1 addition & 1 deletion xcm/src/v3/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ pub fn send_xcm<T: SendXcm>(
dest: MultiLocation,
msg: Xcm<()>,
) -> result::Result<(XcmHash, MultiAssets), SendError> {
let (ticket, price) = T::validate(&mut Some(dest), &mut Some(msg.clone()))?;
let (ticket, price) = T::validate(&mut Some(dest), &mut Some(msg))?;
let hash = T::deliver(ticket)?;
Ok((hash, price))
}
2 changes: 1 addition & 1 deletion xcm/xcm-executor/src/traits/export.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ pub fn export_xcm<T: ExportXcm>(
channel,
&mut Some(universal_source),
&mut Some(dest),
&mut Some(msg.clone()),
&mut Some(msg),
)?;
let hash = T::deliver(ticket)?;
Ok((hash, price))
Expand Down