mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-23 22:25:42 +00:00
Contracts: Remove unstable on lock/unlock_delegate_dependency host fns (#3606)
Oversight from PR https://github.com/paritytech/polkadot-sdk/pull/3384. These 2 functions should have been tagged as stable
This commit is contained in:
@@ -0,0 +1,9 @@
|
|||||||
|
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
|
||||||
@@ -2305,7 +2305,6 @@ pub mod env {
|
|||||||
|
|
||||||
/// Adds a new delegate dependency to the contract.
|
/// Adds a new delegate dependency to the contract.
|
||||||
/// See [`pallet_contracts_uapi::HostFn::lock_delegate_dependency`].
|
/// See [`pallet_contracts_uapi::HostFn::lock_delegate_dependency`].
|
||||||
#[unstable]
|
|
||||||
fn lock_delegate_dependency(ctx: _, memory: _, code_hash_ptr: u32) -> Result<(), TrapReason> {
|
fn lock_delegate_dependency(ctx: _, memory: _, code_hash_ptr: u32) -> Result<(), TrapReason> {
|
||||||
ctx.charge_gas(RuntimeCosts::LockDelegateDependency)?;
|
ctx.charge_gas(RuntimeCosts::LockDelegateDependency)?;
|
||||||
let code_hash = ctx.read_sandbox_memory_as(memory, code_hash_ptr)?;
|
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.
|
/// Removes the delegate dependency from the contract.
|
||||||
/// see [`pallet_contracts_uapi::HostFn::unlock_delegate_dependency`].
|
/// see [`pallet_contracts_uapi::HostFn::unlock_delegate_dependency`].
|
||||||
#[unstable]
|
|
||||||
fn unlock_delegate_dependency(ctx: _, memory: _, code_hash_ptr: u32) -> Result<(), TrapReason> {
|
fn unlock_delegate_dependency(ctx: _, memory: _, code_hash_ptr: u32) -> Result<(), TrapReason> {
|
||||||
ctx.charge_gas(RuntimeCosts::UnlockDelegateDependency)?;
|
ctx.charge_gas(RuntimeCosts::UnlockDelegateDependency)?;
|
||||||
let code_hash = ctx.read_sandbox_memory_as(memory, code_hash_ptr)?;
|
let code_hash = ctx.read_sandbox_memory_as(memory, code_hash_ptr)?;
|
||||||
|
|||||||
Reference in New Issue
Block a user