Remove Unnecessary Initialisation of _paused (#5448)
Co-authored-by: Ernesto García <ernestognw@gmail.com>
This commit is contained in:
committed by
GitHub
parent
9e66e2f9f5
commit
a55fabc405
5
.changeset/green-drinks-report.md
Normal file
5
.changeset/green-drinks-report.md
Normal file
@ -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.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user