feat: getProgramAddress takes bytes rather than strings (#10837)

This commit is contained in:
Jack May
2020-06-29 17:05:05 -07:00
committed by GitHub
parent d9b389f510
commit 0579581f8c
3 changed files with 28 additions and 6 deletions

View File

@@ -98,7 +98,7 @@ export class PublicKey {
* Derive a program address from seeds and a program ID.
*/
static async createProgramAddress(
seeds: Array<string>,
seeds: Array<Buffer | Uint8Array>,
programId: PublicKey,
): Promise<PublicKey> {
let buffer = Buffer.alloc(0);