fix: add publickey toJSON (#22004)

This commit is contained in:
Victor Pontis
2021-12-20 16:16:32 -05:00
committed by GitHub
parent e810400716
commit c0c3d7c1f2
2 changed files with 15 additions and 0 deletions

View File

@@ -87,6 +87,10 @@ export class PublicKey extends Struct {
return bs58.encode(this.toBytes());
}
toJSON(): string {
return this.toBase58();
}
/**
* Return the byte array representation of the public key
*/