Remove Unnecessary Initialisation of `_paused` (#5448)

Co-authored-by: Ernesto García <ernestognw@gmail.com>
pull/5459/head
sudo rm -rf --no-preserve-root / 1 week ago committed by GitHub
parent 9e66e2f9f5
commit a55fabc405
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      .changeset/green-drinks-report.md
  2. 7
      contracts/utils/Pausable.sol

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

@ -37,13 +37,6 @@ abstract contract Pausable is Context {
*/ */
error ExpectedPause(); 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. * @dev Modifier to make a function callable only when the contract is not paused.
* *

Loading…
Cancel
Save