Browse Source

Remove Unnecessary Initialisation of `_paused` (#5448)

Co-authored-by: Ernesto García <ernestognw@gmail.com>
sudo rm -rf --no-preserve-root / 8 months ago
parent
commit
a55fabc405
2 changed files with 5 additions and 7 deletions
  1. 5 0
      .changeset/green-drinks-report.md
  2. 0 7
      contracts/utils/Pausable.sol

+ 5 - 0
.changeset/green-drinks-report.md

@@ -0,0 +1,5 @@
+---
+"openzeppelin-solidity": minor
+---
+
+`Pausable`: Stop explicitly setting `paused` to `false` during construction.

+ 0 - 7
contracts/utils/Pausable.sol

@@ -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.
      *