Skip to content

Commit a55fabc

Browse files
Remove Unnecessary Initialisation of _paused (#5448)
Co-authored-by: Ernesto García <ernestognw@gmail.com>
1 parent 9e66e2f commit a55fabc

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

.changeset/green-drinks-report.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"openzeppelin-solidity": minor
3+
---
4+
5+
`Pausable`: Stop explicitly setting `paused` to `false` during construction.

contracts/utils/Pausable.sol

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,6 @@ abstract contract Pausable is Context {
3737
*/
3838
error ExpectedPause();
3939

40-
/**
41-
* @dev Initializes the contract in unpaused state.
42-
*/
43-
constructor() {
44-
_paused = false;
45-
}
46-
4740
/**
4841
* @dev Modifier to make a function callable only when the contract is not paused.
4942
*

0 commit comments

Comments
 (0)