feat: make Transaction.populate method public and tweak MessageArgs

This commit is contained in:
Justin Starry
2020-06-11 13:15:14 +08:00
committed by Michael Vines
parent 22a63fe93c
commit ad0e71d357
6 changed files with 64 additions and 91 deletions

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

@ -423,7 +423,7 @@ declare module '@solana/web3.js' {
export type MessageArgs = {
header: MessageHeader;
accountKeys: PublicKey[];
accountKeys: string[];
recentBlockhash: Blockhash;
instructions: CompiledInstruction[];
};
@ -487,6 +487,7 @@ declare module '@solana/web3.js' {
constructor(opts?: TransactionCtorFields);
static from(buffer: Buffer | Uint8Array | Array<number>): Transaction;
static populate(message: Message, signatures: Array<string>): Transaction;
add(
...items: Array<
Transaction | TransactionInstruction | TransactionInstructionCtorFields