pub fn xcm_execute<Call>(msg: &VersionedXcm<Call>, weight: Weight) -> Result<()>where
Call: Encode,Expand description
Execute an XCM message locally, using the contract’s address as the origin.
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.
- If the XCM execution fails because of the runtime’s XCM configuration.
§Panics
Panics in the off-chain environment.