mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 16:21:02 +00:00
Contracts: Stabilize XCM host fns (#4213)
See https://github.com/paritytech/ink/pull/1912 https://github.com/paritytech/ink-docs/pull/338
This commit is contained in:
@@ -0,0 +1,11 @@
|
|||||||
|
title: "[pallet-contracts] stabilize xcm_send and xcm_execute"
|
||||||
|
|
||||||
|
doc:
|
||||||
|
- audience: Runtime Dev
|
||||||
|
description: |
|
||||||
|
`xcm_send` and `xcm_execute` are currently marked as unstable. This PR stabilizes them.
|
||||||
|
crates:
|
||||||
|
- name: pallet-contracts
|
||||||
|
bump: major
|
||||||
|
|
||||||
|
|
||||||
@@ -223,14 +223,14 @@ pub struct Environment<T: Config> {
|
|||||||
pub struct ApiVersion(u16);
|
pub struct ApiVersion(u16);
|
||||||
impl Default for ApiVersion {
|
impl Default for ApiVersion {
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
Self(2)
|
Self(3)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn api_version_is_up_to_date() {
|
fn api_version_is_up_to_date() {
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
109,
|
111,
|
||||||
crate::wasm::STABLE_API_COUNT,
|
crate::wasm::STABLE_API_COUNT,
|
||||||
"Stable API count has changed. Bump the returned value of ApiVersion::default() and update the test."
|
"Stable API count has changed. Bump the returned value of ApiVersion::default() and update the test."
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -2104,7 +2104,6 @@ pub mod env {
|
|||||||
|
|
||||||
/// Execute an XCM program locally, using the contract's address as the origin.
|
/// Execute an XCM program locally, using the contract's address as the origin.
|
||||||
/// See [`pallet_contracts_uapi::HostFn::execute_xcm`].
|
/// See [`pallet_contracts_uapi::HostFn::execute_xcm`].
|
||||||
#[unstable]
|
|
||||||
fn xcm_execute(
|
fn xcm_execute(
|
||||||
ctx: _,
|
ctx: _,
|
||||||
memory: _,
|
memory: _,
|
||||||
@@ -2143,7 +2142,6 @@ pub mod env {
|
|||||||
|
|
||||||
/// Send an XCM program from the contract to the specified destination.
|
/// Send an XCM program from the contract to the specified destination.
|
||||||
/// See [`pallet_contracts_uapi::HostFn::send_xcm`].
|
/// See [`pallet_contracts_uapi::HostFn::send_xcm`].
|
||||||
#[unstable]
|
|
||||||
fn xcm_send(
|
fn xcm_send(
|
||||||
ctx: _,
|
ctx: _,
|
||||||
memory: _,
|
memory: _,
|
||||||
|
|||||||
Reference in New Issue
Block a user