pub trait MemoryResolver {
// Required method
fn memory_ref(&self) -> Result<MemoryRef, ResolverError>;
}
Expand description
This trait takes care of returning an instance of allocated memory.
This happens once the WASM program tries to resolve “memory”. Whenever contract didn’t request a memory this method should return an Error.
Required Methods§
Sourcefn memory_ref(&self) -> Result<MemoryRef, ResolverError>
fn memory_ref(&self) -> Result<MemoryRef, ResolverError>
Returns a memory instance.