-
Notifications
You must be signed in to change notification settings - Fork 11.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
Remove Unnecessary Initialisation of _paused
#5448
Conversation
🦋 Changeset detectedLatest commit: 5184b31 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
paused
_paused
Hi @pcaversaccio, This change makes sense but the code pre-dates me so I wonder if I'm missing something. Also, this is strictly breaking but I wouldn't worry too much since it's easy to workaround and doesn't break smart contract upgrades. Let's see if @Amxx has something to add. |
It also pre-dates me 😄 To me there are 2 things to consider:
I'd be ok with that change. But I'm also curious if @frangio knows more about what we have that in the first place ? |
I was thinking something similar but I also don't see it happening with namespace storage. |
Yeah this was the original code and it was just meant to be explicit and carried over until today. I think it's fine to remove it. |
This PR removes the unnecessary initialisation of
_paused
. The state variable is already set at compile-time tofalse
here:openzeppelin-contracts/contracts/utils/Pausable.sol
Line 18 in 332bcb5
Not sure if this requires a changeset. Feel free to push one.