From c424b48cd2a37c81e297a85580bbc3f8a74814cc Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Sat, 3 Nov 2018 18:13:13 -0700 Subject: [PATCH] fix(flow): add transaction instructions field --- web3.js/module.flow.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/web3.js/module.flow.js b/web3.js/module.flow.js index 9e6d9e03e0..b7a4356006 100644 --- a/web3.js/module.flow.js +++ b/web3.js/module.flow.js @@ -92,8 +92,9 @@ declare module '@solana/web3.js' { declare export class TransactionInstruction { fee: number; - - constructor(opts?: TransactionInstructionCtorFields): TransactionInstruction; + keys: Array; + programId: PublicKey; + userdata: Buffer; } declare type TransactionCtorFields = {| @@ -103,6 +104,7 @@ declare module '@solana/web3.js' { declare export class Transaction { signature: ?Buffer; fee: number; + instructions: Array; constructor(opts?: TransactionCtorFields): Transaction; add(item: TransactionInstruction | TransactionInstructionCtorFields): Transaction;