Skip to content

Commit 66d89b2

Browse files
committed
Enable proof testing in wasm
1 parent 97eb7dd commit 66d89b2

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

ledger/src/proofs/transaction.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4182,6 +4182,9 @@ mod tests_with_wasm {
41824182

41834183
#[cfg(test)]
41844184
pub(super) mod tests {
4185+
#[cfg(target_family = "wasm")]
4186+
use wasm_bindgen_test::wasm_bindgen_test as test;
4187+
41854188
use std::path::Path;
41864189

41874190
use mina_p2p_messages::binprot::{

ledger/src/proofs/verification.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -869,6 +869,9 @@ fn generate_new_filename(name: &str, extension: &str, data: &[u8]) -> std::io::R
869869

870870
#[cfg(test)]
871871
mod tests {
872+
#[cfg(target_family = "wasm")]
873+
use wasm_bindgen_test::wasm_bindgen_test as test;
874+
872875
use std::path::Path;
873876

874877
use mina_hasher::Fp;
@@ -878,9 +881,6 @@ mod tests {
878881

879882
use super::*;
880883

881-
#[cfg(target_family = "wasm")]
882-
use wasm_bindgen_test::wasm_bindgen_test as test;
883-
884884
#[test]
885885
fn test_verify_zkapp() {
886886
use mina_p2p_messages::binprot;

0 commit comments

Comments
 (0)