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

@@ -25,6 +25,10 @@ declare module '@solana/web3.js' {
seed: string,
programId: PublicKey,
): Promise<PublicKey>;
static createProgramAddress(
seeds: Array<Buffer | Uint8Array>,
programId: PublicKey,
): Promise<PublicKey>;
equals(publickey: PublicKey): boolean;
toBase58(): string;
toBuffer(): Buffer;