Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
[XCM - UnpaidRemoteExporter] Remove unreachable code (#7088)
Browse files Browse the repository at this point in the history
* Remove unreachable code

* Fix warning
  • Loading branch information
serban300 authored Apr 17, 2023
1 parent 7ca6fdf commit 476d3dd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions xcm/xcm-builder/src/universal_exports.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,7 @@ impl<Bridges: ExporterFor, Router: SendXcm, UniversalLocation: Get<InteriorMulti
// export for free. Common-good chains will typically be afforded this.
let message =
Xcm(vec![ExportMessage { network: remote_network, destination: remote_location, xcm }]);
let (v, mut cost) = validate_send::<Router>(bridge, message)?;
if let Some(payment) = maybe_payment {
cost.push(payment);
}
let (v, cost) = validate_send::<Router>(bridge, message)?;
Ok((v, cost))
}

Expand Down

0 comments on commit 476d3dd

Please sign in to comment.