mirror of
https://github.com/fluencelabs/parity-wasm
synced 2025-06-22 03:02:08 +00:00
add module resolving to program instance
This commit is contained in:
@ -39,6 +39,11 @@ impl ProgramInstance {
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
/// Get one of the modules by name
|
||||
pub fn module(&self, name: &str) -> Option<Arc<ModuleInstanceInterface>> {
|
||||
self.essence.module(name)
|
||||
}
|
||||
}
|
||||
|
||||
impl ProgramInstanceEssence {
|
||||
|
Reference in New Issue
Block a user