fix: allow Uint8Array and Array<number> where Buffer is accepted
This commit is contained in:
committed by
Michael Vines
parent
6ba2f1d524
commit
6a7115b8bd
@@ -13,7 +13,7 @@ export class PublicKey {
|
||||
/**
|
||||
* Create a new PublicKey object
|
||||
*/
|
||||
constructor(value: number | string | Buffer | Array<number>) {
|
||||
constructor(value: number | string | Buffer | Uint8Array | Array<number>) {
|
||||
if (typeof value === 'string') {
|
||||
// hexadecimal number
|
||||
if (value.startsWith('0x')) {
|
||||
|
Reference in New Issue
Block a user