Skip to content

Commit

Permalink
Merge pull request #1039 from graphprotocol/fix_oz_n-09
Browse files Browse the repository at this point in the history
fix: add override keyword in functions (OZ N-09)
  • Loading branch information
MoonBoi9001 authored Sep 20, 2024
2 parents 95b3f83 + 516a4e3 commit f2a5498
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ abstract contract DataServicePausable is Pausable, DataService, IDataServicePaus
/**
* @notice See {IDataServicePausable-pause}
*/
function pause() external onlyPauseGuardian whenNotPaused {
function pause() external override onlyPauseGuardian whenNotPaused {
_pause();
}

/**
* @notice See {IDataServicePausable-pause}
*/
function unpause() external onlyPauseGuardian whenPaused {
function unpause() external override onlyPauseGuardian whenPaused {
_unpause();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ abstract contract DataServicePausableUpgradeable is PausableUpgradeable, DataSer
/**
* @notice See {IDataServicePausable-pause}
*/
function pause() external onlyPauseGuardian whenNotPaused {
function pause() external override onlyPauseGuardian whenNotPaused {
_pause();
}

/**
* @notice See {IDataServicePausable-pause}
*/
function unpause() external onlyPauseGuardian whenPaused {
function unpause() external override onlyPauseGuardian whenPaused {
_unpause();
}

Expand Down
2 changes: 1 addition & 1 deletion packages/subgraph-service/contracts/SubgraphService.sol
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ contract SubgraphService is
/**
* @notice See {ISubgraphService.setRewardsDestination}
*/
function setRewardsDestination(address rewardsDestination) external {
function setRewardsDestination(address rewardsDestination) external override {
_setRewardsDestination(msg.sender, rewardsDestination);
}

Expand Down

0 comments on commit f2a5498

Please sign in to comment.