From 2752089a7c0e1aee5af5fd16c1930a75461164f6 Mon Sep 17 00:00:00 2001 From: Zaryab Date: Thu, 1 Feb 2024 16:32:58 +0400 Subject: [PATCH] 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(); }