Skip to content

Commit

Permalink
feat: getter for _reportProcessor
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDZhon committed Mar 23, 2023
1 parent 3653e4d commit ec6ba4a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions contracts/0.8.9/oracle/HashConsensus.sol
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,10 @@ contract HashConsensus is AccessControlEnumerable {
/// Report processor
///

function getReportProcessor() external view returns (address) {
return _reportProcessor;
}

function setReportProcessor(address newProcessor)
external
onlyRole(MANAGE_REPORT_PROCESSOR_ROLE)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,6 @@ contract HashConsensusTimeTravellable is HashConsensus {
_time += SECONDS_PER_SLOT * SLOTS_PER_EPOCH * numEpochs;
}

function getReportProcessor() external view returns (address) {
return _reportProcessor;
}

function getConsensusVersion() external view returns (uint256) {
return _getConsensusVersion();
}
Expand Down
Loading

0 comments on commit ec6ba4a

Please sign in to comment.