mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 08:47:57 +00:00
Add get_global for Sandbox (#4756)
* Add `get_global` for `Sandbox` This pr adds `get_global` to retrieve a `global` variable from an instantiated sandbox wasm blob. * Bump `spec_version` * Update primitives/wasm-interface/src/lib.rs Co-Authored-By: Sergei Pepyakin <sergei@parity.io> * `get_global` -> `get_global_val` Co-authored-by: Sergei Pepyakin <s.pepyakin@gmail.com> Co-authored-by: Gavin Wood <github@gavwood.com>
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
//! Provides implementations for the runtime interface traits.
|
||||
|
||||
use crate::{
|
||||
RIType, Pointer, pass_by::{PassBy, Codec, Inner, PassByInner},
|
||||
RIType, Pointer, pass_by::{PassBy, Codec, Inner, PassByInner, Enum},
|
||||
util::{unpack_ptr_and_len, pack_ptr_and_len},
|
||||
};
|
||||
#[cfg(feature = "std")]
|
||||
@@ -523,3 +523,11 @@ macro_rules! for_u128_i128 {
|
||||
|
||||
for_u128_i128!(u128);
|
||||
for_u128_i128!(i128);
|
||||
|
||||
impl PassBy for sp_wasm_interface::ValueType {
|
||||
type PassBy = Enum<sp_wasm_interface::ValueType>;
|
||||
}
|
||||
|
||||
impl PassBy for sp_wasm_interface::Value {
|
||||
type PassBy = Codec<sp_wasm_interface::Value>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user