From 2752089a7c0e1aee5af5fd16c1930a75461164f6 Mon Sep 17 00:00:00 2001 From: Zaryab Date: Thu, 1 Feb 2024 16:32:58 +0400 Subject: [PATCH 1/2] reassignment of modifiers --- contracts/PushCore/PushCoreV2_5.sol | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contracts/PushCore/PushCoreV2_5.sol b/contracts/PushCore/PushCoreV2_5.sol index d8f44b6b..98c6e4b6 100644 --- a/contracts/PushCore/PushCoreV2_5.sol +++ b/contracts/PushCore/PushCoreV2_5.sol @@ -143,12 +143,12 @@ contract PushCoreV2_5 is Initializable, PushCoreStorageV1_5, PausableUpgradeable } function pauseContract() external { - onlyGovernance(); + onlyPushChannelAdmin(); _pause(); } function unPauseContract() external { - onlyGovernance(); + onlyPushChannelAdmin(); _unpause(); } @@ -401,7 +401,7 @@ contract PushCoreV2_5 is Initializable, PushCoreStorageV1_5, PausableUpgradeable /// @inheritdoc IPushCoreV2 function blockChannel(address _channelAddress) external whenNotPaused { - onlyPushChannelAdmin(); + onlyGovernance(); if (((channels[_channelAddress].channelState == 3) || (channels[_channelAddress].channelState == 0))) { revert Errors.Core_InvalidChannel(); } From 54629a3832b0d9a80443fba42bc3af251b0b9127 Mon Sep 17 00:00:00 2001 From: Zaryab Date: Thu, 1 Feb 2024 16:35:20 +0400 Subject: [PATCH 2/2] reassignment of modifiers --- contracts/PushCore/PushCoreV2_Temp.sol | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contracts/PushCore/PushCoreV2_Temp.sol b/contracts/PushCore/PushCoreV2_Temp.sol index b7ffb55e..652d25c6 100644 --- a/contracts/PushCore/PushCoreV2_Temp.sol +++ b/contracts/PushCore/PushCoreV2_Temp.sol @@ -144,12 +144,12 @@ contract PushCoreV2_Temp is Initializable, PushCoreStorageV1_5, PausableUpgradea } function pauseContract() external { - onlyGovernance(); + onlyPushChannelAdmin(); _pause(); } function unPauseContract() external { - onlyGovernance(); + onlyPushChannelAdmin(); _unpause(); } /** @@ -401,7 +401,7 @@ contract PushCoreV2_Temp is Initializable, PushCoreStorageV1_5, PausableUpgradea /// @inheritdoc IPushCoreV2 function blockChannel(address _channelAddress) external whenNotPaused { - onlyPushChannelAdmin(); + onlyGovernance(); if (((channels[_channelAddress].channelState == 3) || (channels[_channelAddress].channelState == 0))) { revert Errors.Core_InvalidChannel(); }