Remove Unnecessary Initialisation of _paused (#5448)

Co-authored-by: Ernesto García <ernestognw@gmail.com>
This commit is contained in:
sudo rm -rf --no-preserve-root /
2025-01-23 18:20:07 +01:00
committed by GitHub
parent 9e66e2f9f5
commit a55fabc405
2 changed files with 5 additions and 7 deletions

View File

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

View File

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