diff --git a/arbitrator/wasm-libraries/go-stub/src/value.rs b/arbitrator/wasm-libraries/go-stub/src/value.rs index 3a015bbf7..50e968724 100644 --- a/arbitrator/wasm-libraries/go-stub/src/value.rs +++ b/arbitrator/wasm-libraries/go-stub/src/value.rs @@ -164,7 +164,7 @@ pub unsafe fn get_field(source: u32, field: &[u8]) -> GoValue { } } else if source == GO_ID { if field == b"_pendingEvent" { - if let Some(event) = &PENDING_EVENT { + if let Some(event) = unsafe { &*addr_of!(PENDING_EVENT) } { let id = DynamicObjectPool::singleton() .insert(DynamicObject::PendingEvent(event.clone())); return GoValue::Object(id);