Skip to content

Commit 41f8545

Browse files
authored
fix: instant lock version higher than 1 is not supported (#291)
1 parent 8342a82 commit 41f8545

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/instantlock/instantlock.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class InstantLock {
7575
signature,
7676
};
7777

78-
if (version === 1) {
78+
if (version >= 1) {
7979
result.version = version;
8080
result.cyclehash = cyclehash;
8181
}
@@ -406,7 +406,7 @@ class InstantLock {
406406
signature: this.signature.toString('hex'),
407407
};
408408

409-
if (this.version === 1) {
409+
if (this.version >= 1) {
410410
result.version = this.version;
411411
result.cyclehash = this.cyclehash;
412412
}

0 commit comments

Comments
 (0)