Skip to content

Commit 90b869b

Browse files
committed
fix: avoid Buffer(), use Buffer.alloc() instead
1 parent fb44dd5 commit 90b869b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/publickey.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export class PublicKey {
6868
return b;
6969
}
7070

71-
const zeroPad = new Buffer(32);
71+
const zeroPad = Buffer.alloc(32);
7272
b.copy(zeroPad);
7373
return zeroPad;
7474
}

0 commit comments

Comments
 (0)