diff --git a/substrate/primitives/io/src/lib.rs b/substrate/primitives/io/src/lib.rs index a7ad4c16c3..35daaa3989 100644 --- a/substrate/primitives/io/src/lib.rs +++ b/substrate/primitives/io/src/lib.rs @@ -1051,7 +1051,7 @@ pub trait Offchain { /// Wasm only interface that provides functions for calling into the allocator. #[runtime_interface(wasm_only)] -trait Allocator { +pub trait Allocator { /// Malloc the given number of bytes and return the pointer to the allocated memory location. fn malloc(&mut self, size: u32) -> Pointer { self.allocate_memory(size).expect("Failed to allocate memory")