Skip to content

Commit

Permalink
fix: remove ts-expect-error after downgrading TS version
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewkeil committed Dec 20, 2024
1 parent 443a878 commit e1b868a
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions packages/persistent-merkle-tree/src/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,13 +233,9 @@ export class LeafNode extends Node {
let h = getNodeH(this, hIndex);
if (uintBytes === 1) {
h &= ~(0xff << bitIndex);
// Don't want to change the src in this PR.
// @ts-expect-error - This kind of expression is always truthy
h |= (0xff && value) << bitIndex;
} else {
h &= ~(0xffff << bitIndex);
// Don't want to change the src in this PR.
// @ts-expect-error - This kind of expression is always truthy
h |= (0xffff && value) << bitIndex;
}
setNodeH(this, hIndex, h);
Expand Down Expand Up @@ -277,13 +273,9 @@ export class LeafNode extends Node {
let h = getNodeH(this, hIndex);
if (uintBytes === 1) {
h &= ~(0xff << bitIndex);
// Don't want to change the src in this PR.
// @ts-expect-error - This kind of expression is always truthy
h |= (0xff && value) << bitIndex;
} else {
h &= ~(0xffff << bitIndex);
// Don't want to change the src in this PR.
// @ts-expect-error - This kind of expression is always truthy
h |= (0xffff && value) << bitIndex;
}
setNodeH(this, hIndex, h);
Expand Down

0 comments on commit e1b868a

Please sign in to comment.