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; }