Skip to content

Commit

Permalink
temporary removed minor version comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya committed Jan 31, 2024
1 parent 9390f16 commit ec717c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/KeyShares/KeyShares.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ export class KeyShares {
if (!extVersion || !currentVersion) {
throw new SSVKeysException(`The file for keyshares must contain a version mark provided by ssv-keys.`);
}

if (!extVersion || (currentVersion.major !== extVersion.major) || (currentVersion.minor !== extVersion.minor)) {
// TODO: return minor version comparison || (currentVersion.minor !== extVersion.minor)
if (!extVersion || (currentVersion.major !== extVersion.major)) {
throw new SSVKeysException(`The keyshares file you are attempting to reuse does not have the same version (v${pkg.version}) as supported by ssv-keys`);
}

Expand Down

0 comments on commit ec717c4

Please sign in to comment.