-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Update contract class to not mutate options object #5394
Conversation
Your Render PR Server URL is https://web3-js-pr-5394.onrender.com. Follow its progress at https://dashboard.render.com/static/srv-cc6okipgp3jv8lhb7k8g. |
Pull Request Test Coverage Report for Build 2953468494
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! The PR solves the problem, but, should this be happening? Is it behavior we want?
From my understanding, you should never mutate arguments given to a function (unless that's what the function is specifically designed to do), you should always return the data and let the function caller decide what to do it with it. In the case of |
closes #5304