We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62e9a13 commit 907ded9Copy full SHA for 907ded9
packages/ssz/src/type/basic.ts
@@ -30,7 +30,6 @@ export abstract class BasicType<V> extends Type<V> {
30
}
31
32
hashTreeRoot(value: V): Uint8Array {
33
- // cannot use allocUnsafe() here because hashTreeRootInto() may not fill the whole 32 bytes
34
const root = new Uint8Array(32);
35
this.hashTreeRootInto(value, root, 0);
36
return root;
0 commit comments