Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
vmidyllic committed Oct 21, 2023
1 parent 76ee3d3 commit c982136
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/hash/hash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class Hash implements IHash {
}
static fromBigInt(i: bigint): Hash {
if (!checkBigIntInField(i)) {
throw 'NewBigIntFromHashBytes: Value not inside the Finite Field';
throw new Error('NewBigIntFromHashBytes: Value not inside the Finite Field')
}

const bytes = bigIntToUINT8Array(i);
Expand Down

0 comments on commit c982136

Please sign in to comment.