fix: createProgramAddress now throws on an invalid seed length

This commit is contained in:
Michael Vines
2020-10-13 13:40:38 -07:00
parent f8d338c9cb
commit e84a91d417
5 changed files with 19 additions and 2 deletions

1
web3.js/module.d.ts vendored
View File

@ -3,6 +3,7 @@ declare module '@solana/web3.js' {
import * as BufferLayout from 'buffer-layout';
// === src/publickey.js ===
export const MAX_SEED_LENGTH: number;
export type PublicKeyNonce = [PublicKey, number];
export class PublicKey {
constructor(value: number | string | Buffer | Uint8Array | Array<number>);