Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastijankuzner committed Dec 5, 2024
1 parent 1a6acd4 commit 5890961
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/snapshot-legacy-importer/source/importer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ export class Importer implements Contracts.Snapshot.LegacyImporter {
for (const validator of this.#data.validators) {
Utils.assert.defined(validator.ethAddress);

// TODO: remove this once the actual BLS keys are available
if (validator.blsPublicKey === "TODO") {
const entropy = sha256(Buffer.from(validator.username, "utf8")).slice(2, 34);
const mnemonic = entropyToMnemonic(Buffer.from(entropy, "hex"));
Expand All @@ -251,7 +252,7 @@ export class Importer implements Contracts.Snapshot.LegacyImporter {
);

if (!result.receipt.success) {
throw new Error("failed to add vote");
throw new Error("failed to add validator");
}
}
}
Expand Down

0 comments on commit 5890961

Please sign in to comment.