Function ink_env::xcm_execute
source · pub fn xcm_execute<E, Call>(msg: &VersionedXcm<Call>) -> Result<()>where
E: Environment,
Call: Encode,
Expand description
Execute an XCM message locally, using the contract’s address as the origin.
For more details consult the host function documentation.
§Errors
- If the message cannot be properly decoded on the
pallet-contracts
side. - If the XCM execution fails because of the runtime’s XCM configuration.
§Panics
Panics in the off-chain environment.