From f3242c12a637181b610a62518532cae9e2fa8c40 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Sun, 28 Oct 2018 16:50:35 -0700 Subject: [PATCH] fix(flow): correct onAccountChange 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 b0f76bf152..d94327288b 100644 --- a/web3.js/module.flow.js +++ b/web3.js/module.flow.js @@ -60,7 +60,7 @@ declare module '@solana/web3.js' { getFinality(): Promise; requestAirdrop(to: PublicKey, amount: number): Promise; sendTransaction(from: Account, transaction: Transaction): Promise; - onAccountChange(publickey: PublicKey, callback: AccountChangeCallback): Promise; + onAccountChange(publickey: PublicKey, callback: AccountChangeCallback): number; removeAccountChangeListener(id: number): Promise; }