y-pakorn / flutter_web3

Web3 Ethereum, Etherjs and Wallet Connect wrapper for Flutter Web.
Other
136 stars 46 forks source link

Removing listeners on eth provider doesn't seem to work... #28

Closed patniemeyer closed 2 years ago

patniemeyer commented 2 years ago

I am calling removeAllListeners() on the Ethereum provider and then logging the listenerCount() on that provider, which returns zero. However I still get callbacks on the original listeners. Should this be working?

y-pakorn commented 2 years ago

You need to provide the event name. If you don't supply the event name, it will not do anything (No error thrown).