mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-08 20:37:22 +00:00
Split SandboxInstance::get_global_val implementation per backend (#11234)
This commit is contained in:
@@ -321,3 +321,8 @@ pub fn invoke(
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
/// Get global value by name
|
||||
pub fn get_global(instance: &wasmi::ModuleRef, name: &str) -> Option<Value> {
|
||||
Some(instance.export_by_name(name)?.as_global()?.get().into())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user