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

fix: update web3 on chain change #181

Merged
merged 1 commit into from
Jan 28, 2022
Merged

Conversation

ErnoW
Copy link
Member

@ErnoW ErnoW commented Jan 28, 2022


name: "Pull request"
about: A new pull request

New Pull Request

Checklist

  • I am not disclosing a vulnerability.
  • My code is conform the code style
  • I have made corresponding changes to the documentation
  • I have updated Typescript definitions when needed

Issue Description

EthersJs throws an Error when calling an onChain function, when the user has switched networks

Related issue: #FILL_THIS_OUT

Solution Description

Update the web3 instance on chainChange.
Required SDK to be updated as well: MoralisWeb3/Moralis-JS-SDK#233

@ErnoW ErnoW merged commit f354c05 into main Jan 28, 2022
@ErnoW ErnoW deleted the fix/update-web3-on-chainChange branch January 28, 2022 15:32
ErnoW pushed a commit that referenced this pull request Jan 28, 2022
## [1.1.1](v1.1.0...v1.1.1) (2022-01-28)

### Bug Fixes

* update web3 on chain change ([#181](#181)) ([f354c05](f354c05))
@ErnoW
Copy link
Member Author

ErnoW commented Jan 28, 2022

🎉 This PR is included in version 1.1.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@ErnoW ErnoW added the released label Jan 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant