Skip to content

Commit

Permalink
Merging issues [from develop]
Browse files Browse the repository at this point in the history
  • Loading branch information
EvgenKor committed Dec 19, 2022
1 parent 39d683e commit 7a4fa92
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libzkbob-rs-wasm/src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,10 +315,10 @@ impl UserAccount {
None => None
};

Ok(self.update_state_internal(state_update))
Ok(self.update_state_internal(state_update, siblings))
}

fn update_state_internal(&mut self, state_update: StateUpdate) -> () {
fn update_state_internal(&mut self, state_update: StateUpdate, siblings: Option<Vec<Node<Fr>>>) -> () {
if !state_update.new_leafs.is_empty() || !state_update.new_commitments.is_empty() {
self.inner.borrow_mut()
.state
Expand Down Expand Up @@ -414,7 +414,7 @@ impl UserAccount {

let decrypted_leafs_cnt: usize = single_result.state_update.new_leafs.len();

self.update_state_internal(single_result.state_update);
self.update_state_internal(single_result.state_update, None);


single_result.decrypted_memos.sort_by(|a,b| a.index.cmp(&b.index));
Expand Down

0 comments on commit 7a4fa92

Please sign in to comment.