Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
Trivo25 committed Apr 11, 2024
1 parent 05b521a commit 89efe1a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/examples/zkapps/reducer/actions-as-merkle-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,11 @@ class ActionsContract extends SmartContract {
// (note: if we're past the actual sizes, `.pop()` returns a dummy Action -- in this case, the "empty" public key which is not equal to any real address)
let hasAddress = Bool(false);

let iter = merkleActionss.startIterating();

for (let i = 0; i < MAX_UPDATES_WITH_ACTIONS; i++) {
let merkleActions = iter.next();
let innerIter = merkleActions.startIterating();
let merkleActions = merkleActionss.pop();

for (let j = 0; j < MAX_ACTIONS_PER_UPDATE; j++) {
let action = innerIter.next();
let action = merkleActions.pop();
hasAddress = hasAddress.or(action.equals(address));
}
}
Expand Down

0 comments on commit 89efe1a

Please sign in to comment.