pub fn xcm_send<Call>(
dest: &VersionedLocation,
msg: &VersionedXcm<Call>,
) -> Result<()>where
Call: Encode,Expand description
Send an XCM message, using the contract’s address as the origin.
The msg argument has to be SCALE encoded, it needs to be decodable to a valid
instance of the RuntimeCall enum.
This is done by invoking the XCM precompile. For more details consult the precompile interface.
§Errors
- If the message cannot be properly decoded in the XCM precompile.
§Panics
Panics in the off-chain environment.