From 32e0261e1474df9e674a5e8c985d491776bf7da9 Mon Sep 17 00:00:00 2001 From: Alexander Gryaznov Date: Wed, 11 May 2022 13:42:05 +0300 Subject: [PATCH] stabilize funcs (#1249) --- crates/env/src/engine/on_chain/ext.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/crates/env/src/engine/on_chain/ext.rs b/crates/env/src/engine/on_chain/ext.rs index 02a3fb15db9..e42a7dd8642 100644 --- a/crates/env/src/engine/on_chain/ext.rs +++ b/crates/env/src/engine/on_chain/ext.rs @@ -237,6 +237,8 @@ mod sys { output_len_ptr: Ptr32Mut, ) -> ReturnCode; + pub fn seal_contains_storage(key_ptr: Ptr32<[u8]>) -> ReturnCode; + pub fn seal_clear_storage(key_ptr: Ptr32<[u8]>); pub fn seal_call_chain_extension( @@ -359,6 +361,12 @@ mod sys { output_ptr: Ptr32Mut<[u8]>, output_len_ptr: Ptr32Mut, ) -> ReturnCode; + + pub fn seal_set_storage( + key_ptr: Ptr32<[u8]>, + value_ptr: Ptr32<[u8]>, + value_len: u32, + ) -> ReturnCode; } #[link(wasm_import_module = "__unstable__")] @@ -370,14 +378,6 @@ mod sys { message_hash_ptr: Ptr32<[u8]>, output_ptr: Ptr32Mut<[u8]>, ) -> ReturnCode; - - pub fn seal_contains_storage(key_ptr: Ptr32<[u8]>) -> ReturnCode; - - pub fn seal_set_storage( - key_ptr: Ptr32<[u8]>, - value_ptr: Ptr32<[u8]>, - value_len: u32, - ) -> ReturnCode; } }