Skip to content

Commit 0a75e85

Browse files
committed
Enable proof testing in wasm
1 parent bc39081 commit 0a75e85

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
@@ -969,6 +969,9 @@ fn generate_new_filename(name: &str, extension: &str, data: &[u8]) -> std::io::R
969969

970970
#[cfg(test)]
971971
mod tests {
972+
#[cfg(target_family = "wasm")]
973+
use wasm_bindgen_test::wasm_bindgen_test as test;
974+
972975
use std::path::Path;
973976

974977
use mina_hasher::Fp;
@@ -978,9 +981,6 @@ mod tests {
978981

979982
use super::*;
980983

981-
#[cfg(target_family = "wasm")]
982-
use wasm_bindgen_test::wasm_bindgen_test as test;
983-
984984
#[test]
985985
fn test_verify_zkapp() {
986986
use mina_p2p_messages::binprot;

0 commit comments

Comments
 (0)