Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsubscribe all events #15

Merged
merged 5 commits into from Jul 27, 2021
Merged

Unsubscribe all events #15

merged 5 commits into from Jul 27, 2021

Conversation

ghost
Copy link

@ghost ghost commented Jul 26, 2021

networkChanged will emit the network ID as a decimal string
chainChanged will emit the chain ID as a hexadecimal string

I removed the networkChanged listener since only one chain / network listener is needed.

byterose added 4 commits July 26, 2021 16:37
__networkChanged__ will emit the network ID as a decimal string
__chainChanged__ will emit the chain ID as a hexadecimal string

I commented out the __chainChanged__ listener since only one chain / network listener is needed.
I just noticed that __networkChanged__ is deprecated so I removed it.
Copy link
Owner

@clbrge clbrge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this good PR. let me know if you want me to do the close deprecated code.

close,
disconnect,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should leave close as an alias not to break code on upgrade so brutally. close can console.log deprecated and call disconnect

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we don't need the log then, unless you plan to change the function name to disconnect in the future.

@ghost ghost requested a review from clbrge July 27, 2021 14:13
@clbrge clbrge merged commit beed29a into clbrge:master Jul 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant