From 13fdef9309802de567ddcdbd9e62ae481fa999bb Mon Sep 17 00:00:00 2001 From: deuszx <95355183+deuszx@users.noreply.github.com> Date: Sat, 7 Jan 2023 01:10:47 +0100 Subject: [PATCH] Remove entry about `storage_take`. It's not available on production chains, even though it does exist in the code. For more details, see: - https://github.com/paritytech/substrate/pull/12781 - https://github.com/paritytech/ink/pull/1522 - https://github.com/paritytech/cargo-contract/pull/846 --- contracts.md | 1 - 1 file changed, 1 deletion(-) diff --git a/contracts.md b/contracts.md index 39b359b..e10cf20 100644 --- a/contracts.md +++ b/contracts.md @@ -20,7 +20,6 @@ ## Storage -- added `take(key) -> Option` that allows for removing elements from the storage while returning the value. Replaces `get` + `remove` pattern. - Remove `SpreadAllocate`, `SpreadLayout` and `PackedLayout` implementations (and derivations). - Derive `StorageLayout` in`std` feature for types that you want to store in `Mapping`s (see `Bulletin` struct in the Bulletin Board migration). It’s used when generating contract’s metadata.