fix: avoid Buffer(), use Buffer.alloc() instead

This commit is contained in:
Michael Vines 2018-10-02 21:01:58 -07:00
parent d3d1bce4c2
commit f9cf7006df
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ export class PublicKey {
return b;
}
const zeroPad = new Buffer(32);
const zeroPad = Buffer.alloc(32);
b.copy(zeroPad);
return zeroPad;
}