Skip to content

Commit

Permalink
reassignment of modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
zaryab2000 committed Feb 1, 2024
1 parent 2752089 commit 54629a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contracts/PushCore/PushCoreV2_Temp.sol
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,12 @@ contract PushCoreV2_Temp is Initializable, PushCoreStorageV1_5, PausableUpgradea
}

function pauseContract() external {
onlyGovernance();
onlyPushChannelAdmin();
_pause();
}

function unPauseContract() external {
onlyGovernance();
onlyPushChannelAdmin();
_unpause();
}
/**
Expand Down Expand Up @@ -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();
}
Expand Down

0 comments on commit 54629a3

Please sign in to comment.