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

View File

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