From b9bad0c6892ab0a49cedb0c77c9f6e39cd8cdc3e Mon Sep 17 00:00:00 2001 From: Pepper Lebeck-Jobe Date: Wed, 8 May 2024 17:00:31 +0200 Subject: [PATCH] Fix a bug in Memory::store_slice_aligned() The method was taking the value of the merkle tree and not returning it. --- arbitrator/prover/src/memory.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/arbitrator/prover/src/memory.rs b/arbitrator/prover/src/memory.rs index 4709c406a7..bba8e4124f 100644 --- a/arbitrator/prover/src/memory.rs +++ b/arbitrator/prover/src/memory.rs @@ -263,6 +263,7 @@ impl Memory { merkle.set(start_leaf, hash_leaf(self.get_leaf_data(start_leaf))); // No need for second merkle assert!(value.len() <= Self::LEAF_SIZE); + self.merkle = Some(merkle); } true