fix: allow Uint8Array and Array<number> where Buffer is accepted
This commit is contained in:
committed by
Michael Vines
parent
6ba2f1d524
commit
6a7115b8bd
@ -36,7 +36,7 @@ export class BpfLoader {
|
||||
static load(
|
||||
connection: Connection,
|
||||
payer: Account,
|
||||
elf: Buffer | Array<number>,
|
||||
elf: Buffer | Uint8Array | Array<number>,
|
||||
): Promise<PublicKey> {
|
||||
const program = new Account();
|
||||
return Loader.load(connection, payer, program, BpfLoader.programId, elf);
|
||||
|
Reference in New Issue
Block a user