Skip to content
Snippets Groups Projects
Commit 23763d0e authored by Serban Iorga's avatar Serban Iorga Committed by GitHub
Browse files

[XCM - UnpaidRemoteExporter] Remove unreachable code (#7088)

* Remove unreachable code

* Fix warning
parent 926f9a63
Branches
No related merge requests found
......@@ -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))
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment