mirror of
https://github.com/fluencelabs/parity-wasm
synced 2025-06-22 11:11:54 +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 {
|
impl ProgramInstanceEssence {
|
||||||
|
Reference in New Issue
Block a user