From f1db055199e29d42b3f0b48d9d99426b37b3cb59 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Wed, 28 Nov 2018 12:19:08 -0800 Subject: [PATCH] fix: flowtype catchup --- web3.js/module.flow.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/web3.js/module.flow.js b/web3.js/module.flow.js index c5e4a5756f..6fda94fbf9 100644 --- a/web3.js/module.flow.js +++ b/web3.js/module.flow.js @@ -98,13 +98,12 @@ declare module '@solana/web3.js' { declare export type TransactionId = string; declare type TransactionInstructionCtorFields = {| - keys?: Array, + keys: ?Array, programId?: PublicKey, userdata?: Buffer, |}; declare export class TransactionInstruction { - fee: number; keys: Array; programId: PublicKey; userdata: Buffer; @@ -122,13 +121,15 @@ declare module '@solana/web3.js' { |}; declare export class Transaction { + signatures: Array; signature: ?Buffer; - fee: number; instructions: Array; + lastId: ?TransactionId; + fee: number; constructor(opts?: TransactionCtorFields): Transaction; add( - ...items: Array + ...items: Array ): Transaction; sign(...signers: Array): void; signPartial(...partialSigners: Array): void;