diff --git a/solidity/contracts/modules/dispute/CircuitResolverModule.sol b/solidity/contracts/modules/dispute/CircuitResolverModule.sol index 30c946af..0f971577 100644 --- a/solidity/contracts/modules/dispute/CircuitResolverModule.sol +++ b/solidity/contracts/modules/dispute/CircuitResolverModule.sol @@ -50,7 +50,7 @@ contract CircuitResolverModule is Module, ICircuitResolverModule { emit DisputeStatusChanged({_disputeId: _disputeId, _dispute: _dispute, _status: IOracle.DisputeStatus.Won}); - ORACLE.proposeResponse(_dispute.disputer, _request, _newResponse); + ORACLE.proposeResponse(_request, _newResponse); ORACLE.finalize(_request, _newResponse); } else { emit DisputeStatusChanged({_disputeId: _disputeId, _dispute: _dispute, _status: IOracle.DisputeStatus.Lost}); @@ -79,6 +79,7 @@ contract CircuitResolverModule is Module, ICircuitResolverModule { // TODO: call ORACLE.updateDisputeStatus emit ResponseDisputed({ + _requestId: _response.requestId, _responseId: _dispute.responseId, _disputeId: _getId(_dispute), _dispute: _dispute, diff --git a/solidity/test/unit/modules/dispute/CircuitResolverModule.t.sol b/solidity/test/unit/modules/dispute/CircuitResolverModule.t.sol index c48716e5..217dcec3 100644 --- a/solidity/test/unit/modules/dispute/CircuitResolverModule.t.sol +++ b/solidity/test/unit/modules/dispute/CircuitResolverModule.t.sol @@ -41,7 +41,11 @@ contract BaseTest is Test, Helpers { // Events event DisputeStatusChanged(bytes32 _disputeId, IOracle.Dispute _dispute, IOracle.DisputeStatus _status); event ResponseDisputed( - bytes32 indexed _responseId, bytes32 indexed _disputeId, IOracle.Dispute _dispute, uint256 _blockNumber + bytes32 indexed _requestId, + bytes32 indexed _responseId, + bytes32 indexed _disputeId, + IOracle.Dispute _dispute, + uint256 _blockNumber ); /** @@ -162,6 +166,7 @@ contract CircuitResolverModule_Unit_DisputeResponse is BaseTest { // Check: is the event emitted? vm.expectEmit(true, true, true, true, address(circuitResolverModule)); emit ResponseDisputed({ + _requestId: mockResponse.requestId, _responseId: mockDispute.responseId, _disputeId: _getId(mockDispute), _dispute: mockDispute,