referrerpolicy=no-referrer-when-downgrade

Function xcm_simulator::validate_send

pub fn validate_send<T>(
    dest: Location,
    msg: Xcm<()>,
) -> Result<(<T as SendXcm>::Ticket, Assets), SendError>
where T: SendXcm,
Expand description

Convenience function for using a SendXcm implementation. Just interprets the dest and wraps both in Some before passing them as mutable references into T::send_xcm.