Skip to content

Commit

Permalink
Remove Unnecessary Initialisation of _paused (#5448)
Browse files Browse the repository at this point in the history
Co-authored-by: Ernesto García <[email protected]>
  • Loading branch information
pcaversaccio and ernestognw authored Jan 23, 2025
1 parent 9e66e2f commit a55fabc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/green-drinks-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"openzeppelin-solidity": minor
---

`Pausable`: Stop explicitly setting `paused` to `false` during construction.
7 changes: 0 additions & 7 deletions contracts/utils/Pausable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,6 @@ abstract contract Pausable is Context {
*/
error ExpectedPause();

/**
* @dev Initializes the contract in unpaused state.
*/
constructor() {
_paused = false;
}

/**
* @dev Modifier to make a function callable only when the contract is not paused.
*
Expand Down

0 comments on commit a55fabc

Please sign in to comment.