-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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