From ec47a456c121392edf4e04101305c53031a30d48 Mon Sep 17 00:00:00 2001 From: madlabman <10616301+madlabman@users.noreply.github.com> Date: Tue, 16 Dec 2025 15:48:26 +0100 Subject: [PATCH] fix: add missing getter to IReportAsyncProcessor --- contracts/0.8.9/oracle/HashConsensus.sol | 3 +++ test/0.8.9/contracts/ReportProcessor__Mock.sol | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/contracts/0.8.9/oracle/HashConsensus.sol b/contracts/0.8.9/oracle/HashConsensus.sol index d2c81aa393..877b6cd7c4 100644 --- a/contracts/0.8.9/oracle/HashConsensus.sol +++ b/contracts/0.8.9/oracle/HashConsensus.sol @@ -65,6 +65,9 @@ interface IReportAsyncProcessor { /// one returned from this function. /// function getConsensusVersion() external view returns (uint256); + + /// @notice Returns the address of the HashConsensus contract. + function getConsensusContract() external view returns (address); } diff --git a/test/0.8.9/contracts/ReportProcessor__Mock.sol b/test/0.8.9/contracts/ReportProcessor__Mock.sol index 9a2887902b..72f177a296 100644 --- a/test/0.8.9/contracts/ReportProcessor__Mock.sol +++ b/test/0.8.9/contracts/ReportProcessor__Mock.sol @@ -56,6 +56,10 @@ contract ReportProcessor__Mock is IReportAsyncProcessor { return _consensusVersion; } + function getConsensusContract() external view returns (address) { + return address(0); + } + function submitConsensusReport(bytes32 report, uint256 refSlot, uint256 deadline) external { _submitReportLastCall.report = report; _submitReportLastCall.refSlot = refSlot;