Skip to content

Commit

Permalink
Merge pull request #73 from cardano-foundation/fix-wits-rotation
Browse files Browse the repository at this point in the history
Fix rotation with witnesses
  • Loading branch information
rodolfomiranda authored Aug 5, 2023
2 parents a564a37 + 972c870 commit 41de85b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/keri/core/eventing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export function rotate({
throw new Error(`Invalid member combination among cuts = ${cuts}, and adds = ${adds}.`)
}

let newitsetdiff = [...witset].filter(x => cutset.has(x))
let newitsetdiff = new Set([...witset].filter(x => cutset.has(x)))
let newitset = new Set([...newitsetdiff, ..._adds])

if (newitset.size != (witset.size - cutset.size + addset.size)) {
Expand Down

0 comments on commit 41de85b

Please sign in to comment.