Skip to content

Commit

Permalink
refactor: disputeResponse arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
gas1cent committed Nov 6, 2023
1 parent db7d872 commit e93760e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
3 changes: 1 addition & 2 deletions solidity/interfaces/modules/dispute/IDisputeModule.sol
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,13 @@ interface IDisputeModule is IModule {
* Bonds the tokens of the disputer.
* @param _responseId The ID of the response being disputed
* @param _disputer The address of the user who disputed the response
* @return _dispute The dispute on the proposed response
*/
function disputeResponse(
IOracle.Request calldata _request,
bytes32 _responseId,
address _disputer,
IOracle.Response calldata _response
) external returns (IOracle.Dispute memory _dispute);
) external;

/**
* @notice Callback executed after a response to a dispute is received by the oracle
Expand Down
10 changes: 1 addition & 9 deletions solidity/test/mocks/contracts/MockDisputeModule.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,7 @@ contract MockDisputeModule is Module, IMockDisputeModule {
bytes32 _responseId,
address _disputer,
IOracle.Response calldata _response
) external view returns (IOracle.Dispute memory _dispute) {
bytes32 _requestId = _getId(_request);
_dispute = IOracle.Dispute({
disputer: _disputer,
proposer: _response.proposer,
responseId: _responseId,
requestId: _requestId
});
}
) external {}

function decodeRequestData(bytes calldata _data) public view returns (RequestParameters memory _requestData) {
_requestData = abi.decode(_data, (RequestParameters));
Expand Down

0 comments on commit e93760e

Please sign in to comment.