diff --git a/solidity/contracts/Oracle.sol b/solidity/contracts/Oracle.sol index 1661ec0..461c636 100644 --- a/solidity/contracts/Oracle.sol +++ b/solidity/contracts/Oracle.sol @@ -214,12 +214,12 @@ contract Oracle is IOracle { if (address(_request.resolutionModule) != address(0)) { // Initiate the resolution - IResolutionModule(_request.resolutionModule).startResolution(_disputeId, _request, _dispute); + IResolutionModule(_request.resolutionModule).startResolution(_disputeId, _response, _request, _dispute); } } /// @inheritdoc IOracle - function resolveDispute(Request calldata _request, Dispute calldata _dispute) external { + function resolveDispute(Request calldata _request, Response calldata _response, Dispute calldata _dispute) external { bytes32 _requestId = _getId(_request); bytes32 _disputeId = _getId(_dispute); @@ -236,7 +236,7 @@ contract Oracle is IOracle { revert Oracle_NoResolutionModule(_disputeId); } - IResolutionModule(_request.resolutionModule).resolveDispute(_disputeId, _request, _dispute); + IResolutionModule(_request.resolutionModule).resolveDispute(_disputeId, _request, _response, _dispute); emit DisputeResolved(msg.sender, _disputeId, block.number); } diff --git a/solidity/interfaces/modules/resolution/IResolutionModule.sol b/solidity/interfaces/modules/resolution/IResolutionModule.sol index d059452..5ec30c1 100644 --- a/solidity/interfaces/modules/resolution/IResolutionModule.sol +++ b/solidity/interfaces/modules/resolution/IResolutionModule.sol @@ -39,6 +39,7 @@ interface IResolutionModule is IModule { function startResolution( bytes32 _disputeId, IOracle.Request calldata _request, + IOracle.Response calldata _response, IOracle.Dispute calldata _dispute ) external; @@ -50,6 +51,7 @@ interface IResolutionModule is IModule { function resolveDispute( bytes32 _disputeId, IOracle.Request calldata _request, + IOracle.Response calldata _response, IOracle.Dispute calldata _dispute ) external; }