fix: avoid Buffer(), use Buffer.alloc() instead
This commit is contained in:
parent
d3d1bce4c2
commit
f9cf7006df
|
@ -68,7 +68,7 @@ export class PublicKey {
|
|||
return b;
|
||||
}
|
||||
|
||||
const zeroPad = new Buffer(32);
|
||||
const zeroPad = Buffer.alloc(32);
|
||||
b.copy(zeroPad);
|
||||
return zeroPad;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue