Skip to content

Commit

Permalink
fix: instant lock version higher than 1 is not supported (#291)
Browse files Browse the repository at this point in the history
  • Loading branch information
shumkov authored Oct 30, 2023
1 parent 8342a82 commit 41f8545
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/instantlock/instantlock.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class InstantLock {
signature,
};

if (version === 1) {
if (version >= 1) {
result.version = version;
result.cyclehash = cyclehash;
}
Expand Down Expand Up @@ -406,7 +406,7 @@ class InstantLock {
signature: this.signature.toString('hex'),
};

if (this.version === 1) {
if (this.version >= 1) {
result.version = this.version;
result.cyclehash = this.cyclehash;
}
Expand Down

0 comments on commit 41f8545

Please sign in to comment.