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