Skip to content

Commit

Permalink
Docs: Fix expected root in SMT root test pseudocode example (#74)
Browse files Browse the repository at this point in the history
* Fix expected root in pseudocode example

* Date

* White space
  • Loading branch information
bvrooman authored Mar 6, 2022
1 parent f667668 commit ca197e7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions fuel-merkle/docs/test-specs/sparse_merkle_tree_tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Version
0.1.0

Last updated 2022/02/25
Last updated 2022/03/04

## Abstract

Expand Down Expand Up @@ -354,7 +354,7 @@ for i in 0..5 {
smt.update(&sum(key), data)
}
root = smt.root()
expected_root = 'e02e761efef33aaa7a7027b4f5596c4c860476f299cdd0c4555199292d5041ee'
expected_root = 'e912e97abc67707b2e6027338292943b53d01a7fbd7b244674128c7e468dd696'
expect(hex_encode(root), expected_root).to_be_equal
```
---
Expand Down Expand Up @@ -412,7 +412,6 @@ root = smt.root()
expected_root = '0000000000000000000000000000000000000000000000000000000000000000'
expect(hex_encode(root), expected_root).to_be_equal
```

---

### Test Update 1 Delete 1
Expand Down Expand Up @@ -534,7 +533,6 @@ root = smt.root()
expected_root = '108f731f2414e33ae57e584dc26bd276db07874436b2264ca6e520c658185c6b'
expect(hex_encode(root), expected_root).to_be_equal
```

---

### Test Interleaved Update Delete
Expand Down

0 comments on commit ca197e7

Please sign in to comment.