Skip to content

Commit

Permalink
Contracts: Remove unstable on lock/unlock_delegate_dependency host fns (
Browse files Browse the repository at this point in the history
paritytech#3606)

Oversight from PR paritytech#3384.
These 2 functions should have been tagged as stable
  • Loading branch information
pgherveou authored Mar 7, 2024
1 parent 3b811f1 commit d579037
Showing 1 changed file with 0 additions and 2 deletions.
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 @@ -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)?;
Expand All @@ -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)?;
Expand Down

0 comments on commit d579037

Please sign in to comment.