pub fn xcm_send<E, Call>(
dest: &VersionedLocation,
msg: &VersionedXcm<Call>,
) -> Result<XcmHash>where
E: Environment,
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.
For more details consult host function documentation.
§Errors
- If the message cannot be properly decoded on the
pallet-contracts
side.
§Panics
Panics in the off-chain environment.