Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Daksh14 committed May 31, 2024
1 parent 7671855 commit fa33d16
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Binary file added assets/dusk_wallet_core.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub mod types;
pub mod utils;
/// The maximum number of keys (inclusive) to derive when attempting to decrypt
/// a note.
pub const MAX_KEY: usize = 0;
pub const MAX_KEY: usize = 1;

/// The maximum allocated buffer for rkyv serialization.
pub const MAX_LEN: usize = rusk_abi::ARGBUF_LEN;
Expand Down
3 changes: 2 additions & 1 deletion tests/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,8 @@ mod node {
.into_iter()
.map(|value| {
let obfuscated = (rng.next_u32() & 1) == 1;
let idx = rng.next_u64() % MAX_KEY as u64;
let idx = rng.next_u64()
% (if MAX_KEY == 0 { 1 } else { MAX_KEY }) as u64;
let sk = key::derive_sk(seed, idx);
let pk = PublicKey::from(&sk);

Expand Down

0 comments on commit fa33d16

Please sign in to comment.