Skip to content

Commit

Permalink
Fix skip signature without signers
Browse files Browse the repository at this point in the history
  • Loading branch information
Agusx1211 committed Jun 27, 2023
1 parent e521953 commit 074d752
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sessions/src/trackers/local.ts
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ export class LocalConfigTracker implements ConfigTracker, migrator.PresignedMigr
)

// Skip if we don't have ANY signatures (it can never reach the threshold)
if (Object.keys(signatures).length === 0) continue
if (signatures.size === 0) continue

// Encode the full signature (to see if it has enough weight)
const encoded = v2.signature.SignatureCoder.encodeSigners(fromConfig, signatures, [], 0)
Expand Down

0 comments on commit 074d752

Please sign in to comment.