From 57a32649051281516752d962f2d0ca4c631f3f35 Mon Sep 17 00:00:00 2001 From: pgherveou Date: Thu, 7 Mar 2024 10:32:00 +0100 Subject: [PATCH 1/3] remove unstable on lock/unlock_delegate_dependency host fns --- substrate/frame/contracts/src/wasm/runtime.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/substrate/frame/contracts/src/wasm/runtime.rs b/substrate/frame/contracts/src/wasm/runtime.rs index f440c818166d..402ff78dcde2 100644 --- a/substrate/frame/contracts/src/wasm/runtime.rs +++ b/substrate/frame/contracts/src/wasm/runtime.rs @@ -2305,7 +2305,6 @@ pub mod env { /// Adds a new delegate dependency to the contract. /// See [`pallet_contracts_uapi::HostFn::lock_delegate_dependency`]. - #[unstable] fn lock_delegate_dependency(ctx: _, memory: _, code_hash_ptr: u32) -> Result<(), TrapReason> { ctx.charge_gas(RuntimeCosts::LockDelegateDependency)?; let code_hash = ctx.read_sandbox_memory_as(memory, code_hash_ptr)?; @@ -2315,7 +2314,6 @@ pub mod env { /// Removes the delegate dependency from the contract. /// see [`pallet_contracts_uapi::HostFn::unlock_delegate_dependency`]. - #[unstable] fn unlock_delegate_dependency(ctx: _, memory: _, code_hash_ptr: u32) -> Result<(), TrapReason> { ctx.charge_gas(RuntimeCosts::UnlockDelegateDependency)?; let code_hash = ctx.read_sandbox_memory_as(memory, code_hash_ptr)?; From f7534bc1d50e93ce40342fb565578015ba755f14 Mon Sep 17 00:00:00 2001 From: pgherveou Date: Thu, 7 Mar 2024 10:38:35 +0100 Subject: [PATCH 2/3] Mark lock/unlock as stable --- prdoc/pr_3606.prdoc | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 prdoc/pr_3606.prdoc diff --git a/prdoc/pr_3606.prdoc b/prdoc/pr_3606.prdoc new file mode 100644 index 000000000000..f452453f05dc --- /dev/null +++ b/prdoc/pr_3606.prdoc @@ -0,0 +1,12 @@ +# Schema: Polkadot SDK PRDoc Schema (prdoc) v1.0.0 +# See doc at https://raw.githubusercontent.com/paritytech/polkadot-sdk/master/prdoc/schema_user.json + +title: "[pallet_contracts] mark lock/unlock_delegate_dependency as stable" + +doc: + - audience: Runtime Dev + description: | + Lock and unlock delegate dependency are stable now, so we can mark them as such. + +crates: + - name: pallet_contracts From 9e95953db84062f2e92ddde61b2123c9977b79c7 Mon Sep 17 00:00:00 2001 From: pgherveou Date: Thu, 7 Mar 2024 10:51:30 +0100 Subject: [PATCH 3/3] fix prdoc --- prdoc/pr_3606.prdoc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/prdoc/pr_3606.prdoc b/prdoc/pr_3606.prdoc index f452453f05dc..18b71de9477e 100644 --- a/prdoc/pr_3606.prdoc +++ b/prdoc/pr_3606.prdoc @@ -1,6 +1,3 @@ -# Schema: Polkadot SDK PRDoc Schema (prdoc) v1.0.0 -# See doc at https://raw.githubusercontent.com/paritytech/polkadot-sdk/master/prdoc/schema_user.json - title: "[pallet_contracts] mark lock/unlock_delegate_dependency as stable" doc: @@ -9,4 +6,4 @@ doc: Lock and unlock delegate dependency are stable now, so we can mark them as such. crates: - - name: pallet_contracts + - name: pallet-contracts