fix: add Buffer to loader elf data arg type

This commit is contained in:
Justin Starry
2020-02-11 15:22:12 +08:00
committed by Michael Vines
parent e8ca68043a
commit 7073310e2b
4 changed files with 6 additions and 6 deletions

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

@ -443,7 +443,7 @@ declare module '@solana/web3.js' {
payer: Account,
program: Account,
programId: PublicKey,
data: Array<number>,
data: Buffer | Array<number>,
): Promise<PublicKey>;
}
@ -454,7 +454,7 @@ declare module '@solana/web3.js' {
static load(
connection: Connection,
payer: Account,
elfBytes: Array<number>,
elfBytes: Buffer | Array<number>,
): Promise<PublicKey>;
}