From 9d63f28cdf38439070bf28735d9adf43f25bbfb7 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Thu, 18 Oct 2018 23:12:14 -0700 Subject: [PATCH] fix(flow): correct newAccount prototype --- web3.js/module.flow.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web3.js/module.flow.js b/web3.js/module.flow.js index 0722e182c4..677a19d5fe 100644 --- a/web3.js/module.flow.js +++ b/web3.js/module.flow.js @@ -134,7 +134,7 @@ declare module '@solana/web3.js' { ): Promise; constructor(connection: Connection, token: PublicKey) : Token; - newAccount(owner: Account, source: null | PublicKey): Promise; + newAccount(owner: Account, source?: PublicKey): Promise; tokenInfo(): Promise; accountInfo(account: PublicKey): Promise; transfer(