Skip to content

Commit

Permalink
feat: resolveDispute in MockAtomicArbitrator
Browse files Browse the repository at this point in the history
  • Loading branch information
xorsal committed Nov 4, 2024
1 parent ff81b35 commit f0b77fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion solidity/test/mocks/MockAtomicArbitrator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@ contract MockAtomicArbitrator is IArbitrator {
IOracle.Request memory _request,
IOracle.Response memory _response,
IOracle.Dispute memory _dispute,
// review: why access control here?
IAccessController.AccessControl memory _accessControl
) external returns (bytes memory _result) {
_result = new bytes(0);
answer = IOracle.DisputeStatus.Won;
oracle.resolveDispute(_request, _response, _dispute);
// review: really not sure about this change
oracle.resolveDispute(_request, _response, _dispute, IAccessController.AccessControl(address(this), bytes('')));
}

function getAnswer(bytes32 /* _dispute */ ) external view returns (IOracle.DisputeStatus _answer) {
Expand Down

0 comments on commit f0b77fb

Please sign in to comment.