Skip to content

Commit

Permalink
Merge pull request #1086 from 0xPolygonMiden/andrew-fix-merkle-store-…
Browse files Browse the repository at this point in the history
…example

Fix the Merkle Store example
  • Loading branch information
bobbinth authored Oct 3, 2023
2 parents c711d08 + 2d90faf commit 3c6c540
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions miden/examples/merkle_store/merkle_store.masm
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ begin
push.0.2
mtree_get
# check that returned value is equal to 20
push.20
assert_eq
push.20.0.0.0
assert_eqw

swapw
dropw

# push the root of the Sparse Merkle Tree on the stack
Expand All @@ -19,10 +18,9 @@ begin
push.1.64
mtree_get
# check that returned value is equal to 21
push.21
assert_eq
push.21.0.0.0
assert_eqw

swapw
dropw

# push the root of the Merkle Tree on the stack
Expand All @@ -32,10 +30,9 @@ begin
push.2.2
mtree_get
# check that returned value is equal to 22
push.22
assert_eq
push.22.0.0.0
assert_eqw

swapw
dropw

end

0 comments on commit 3c6c540

Please sign in to comment.