-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
599806a
commit 6f8c01c
Showing
2 changed files
with
113 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
// for testing purposes only | ||
|
||
pragma solidity 0.8.9; | ||
|
||
import { ReportValues } from "contracts/0.8.9/oracle/AccountingOracle.sol"; | ||
import { IReportReceiver } from "contracts/0.8.9/oracle/AccountingOracle.sol"; | ||
|
||
contract Accounting__MockForSanityChecker is IReportReceiver { | ||
struct HandleOracleReportCallData { | ||
ReportValues arg; | ||
uint256 callCount; | ||
} | ||
|
||
HandleOracleReportCallData public lastCall__handleOracleReport; | ||
|
||
function handleOracleReport(ReportValues memory values) external override { | ||
lastCall__handleOracleReport = HandleOracleReportCallData( | ||
values, | ||
++lastCall__handleOracleReport.callCount | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters