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