Skip to content

Commit

Permalink
Contracts: Stabilize XCM host fns (#4213)
Browse files Browse the repository at this point in the history
  • Loading branch information
pgherveou authored Apr 25, 2024
1 parent 7e68b2b commit b801d00
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
11 changes: 11 additions & 0 deletions prdoc/pr_4213.prdoc
Original file line number Diff line number Diff line change
@@ -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


4 changes: 2 additions & 2 deletions substrate/frame/contracts/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,14 +223,14 @@ pub struct Environment<T: Config> {
pub struct ApiVersion(u16);
impl Default for ApiVersion {
fn default() -> Self {
Self(2)
Self(3)
}
}

#[test]
fn api_version_is_up_to_date() {
assert_eq!(
109,
111,
crate::wasm::STABLE_API_COUNT,
"Stable API count has changed. Bump the returned value of ApiVersion::default() and update the test."
);
Expand Down
2 changes: 0 additions & 2 deletions substrate/frame/contracts/src/wasm/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2104,7 +2104,6 @@ pub mod env {

/// Execute an XCM program locally, using the contract's address as the origin.
/// See [`pallet_contracts_uapi::HostFn::execute_xcm`].
#[unstable]
fn xcm_execute(
ctx: _,
memory: _,
Expand Down Expand Up @@ -2143,7 +2142,6 @@ pub mod env {

/// Send an XCM program from the contract to the specified destination.
/// See [`pallet_contracts_uapi::HostFn::send_xcm`].
#[unstable]
fn xcm_send(
ctx: _,
memory: _,
Expand Down

0 comments on commit b801d00

Please sign in to comment.