From 9d23ab0adbbcfde6258df1458707bd1bf975c0c4 Mon Sep 17 00:00:00 2001 From: sudo rm -rf --no-preserve-root / Date: Tue, 21 Jan 2025 15:37:53 +0100 Subject: [PATCH 1/2] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20Remove=20Unnecessary?= =?UTF-8?q?=20Initialisation=20of=20`paused`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- contracts/utils/Pausable.sol | 7 ------- 1 file changed, 7 deletions(-) diff --git a/contracts/utils/Pausable.sol b/contracts/utils/Pausable.sol index 312f1cb90fe..ffeab759f92 100644 --- a/contracts/utils/Pausable.sol +++ b/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. * From 5184b31649b8e63f4e995ffd333ffa7bfd75d14e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ernesto=20Garc=C3=ADa?= Date: Tue, 21 Jan 2025 09:52:21 -0600 Subject: [PATCH 2/2] Create green-drinks-report.md --- .changeset/green-drinks-report.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/green-drinks-report.md diff --git a/.changeset/green-drinks-report.md b/.changeset/green-drinks-report.md new file mode 100644 index 00000000000..983062cbbe7 --- /dev/null +++ b/.changeset/green-drinks-report.md @@ -0,0 +1,5 @@ +--- +"openzeppelin-solidity": minor +--- + +`Pausable`: Stop explicitly setting `paused` to `false` during construction.