From 967a0abeaa814f1175e2528d8cc8ccfbdac84361 Mon Sep 17 00:00:00 2001 From: Dakota Brink Date: Fri, 20 Dec 2024 13:50:23 -0500 Subject: [PATCH] wasm --- xmtp_mls/src/storage/encrypted_store/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xmtp_mls/src/storage/encrypted_store/mod.rs b/xmtp_mls/src/storage/encrypted_store/mod.rs index d072321c0..fa2cc4215 100644 --- a/xmtp_mls/src/storage/encrypted_store/mod.rs +++ b/xmtp_mls/src/storage/encrypted_store/mod.rs @@ -594,8 +594,12 @@ pub(crate) mod tests { let db_path = tmp_path(); let opts = StorageOption::Persistent(db_path.clone()); + #[cfg(not(target_arch = "wasm32"))] let db = native::NativeDb::new(&opts, Some(EncryptedMessageStore::generate_enc_key())).unwrap(); + #[cfg(target_arch = "wasm32")] + let db = wasm::WasmDb::new(&opts).await?; + let store = EncryptedMessageStore { db, opts }; store.db.validate(&store.opts).unwrap();