Skip to content

Commit

Permalink
jmt(ics23): insert a fourth leaf
Browse files Browse the repository at this point in the history
  • Loading branch information
erwanor committed Sep 29, 2023
1 parent aa3030c commit 7fa0486
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tree/ics23_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -462,10 +462,11 @@ mod tests {
/// Write four keys into the JMT, and query an ICS23 proof for a nonexistent
/// key. This reproduces a bug that was fixed in release `0.8.0`
fn test_jmt_ics23_nonexistence_simple() {
use crate::Sha256Jmt;
let db = MockTreeStore::default();
let tree = Sha256Jmt::new(&db);

const MAX_VERSION: u64 = 3;
const MAX_VERSION: u64 = 4;

for version in 0..=MAX_VERSION {
let key_str = format!("key-{}", version);
Expand Down

0 comments on commit 7fa0486

Please sign in to comment.