Skip to content

Commit

Permalink
feat: remove _blockNumber from events
Browse files Browse the repository at this point in the history
  • Loading branch information
xorsal committed Sep 30, 2024
1 parent cf4ad86 commit 5590bd0
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 11 deletions.
3 changes: 1 addition & 2 deletions solidity/contracts/modules/dispute/BondEscalationModule.sol
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ contract BondEscalationModule is Module, IBondEscalationModule {
_requestId: _dispute.requestId,
_responseId: _dispute.responseId,
_disputeId: _disputeId,
_dispute: _dispute,
_blockNumber: block.number
_dispute: _dispute
});

// Only the first dispute of a request should go through the bond escalation
Expand Down
3 changes: 1 addition & 2 deletions solidity/contracts/modules/dispute/BondedDisputeModule.sol
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ contract BondedDisputeModule is Module, IBondedDisputeModule {
_requestId: _dispute.requestId,
_responseId: _dispute.responseId,
_disputeId: _getId(_dispute),
_dispute: _dispute,
_blockNumber: block.number
_dispute: _dispute
});
}

Expand Down
3 changes: 1 addition & 2 deletions solidity/contracts/modules/dispute/CircuitResolverModule.sol
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@ contract CircuitResolverModule is Module, ICircuitResolverModule {
_requestId: _response.requestId,
_responseId: _dispute.responseId,
_disputeId: _getId(_dispute),
_dispute: _dispute,
_blockNumber: block.number
_dispute: _dispute
});

ORACLE.updateDisputeStatus(_request, _response, _dispute, _status);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ contract RootVerificationModule is Module, IRootVerificationModule {
_requestId: _response.requestId,
_responseId: _dispute.responseId,
_disputeId: _getId(_dispute),
_dispute: _dispute,
_blockNumber: block.number
_dispute: _dispute
});

ORACLE.updateDisputeStatus(_request, _response, _dispute, _status);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ contract BondedResponseModule is Module, IBondedResponseModule {
});
}

emit ResponseProposed(_response.requestId, _response, block.number);
emit ResponseProposed(_response.requestId, _response);
}

/// @inheritdoc IBondedResponseModule
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ interface IBondedResponseModule is IResponseModule {
*
* @param _requestId The ID of the request that the response was proposed
* @param _response The proposed response
* @param _blockNumber The number of the block in which the response was proposed
*/
event ResponseProposed(bytes32 indexed _requestId, IOracle.Response _response, uint256 indexed _blockNumber);
event ResponseProposed(bytes32 indexed _requestId, IOracle.Response _response);

/**
* @notice Emitted when an uncalled response is released
Expand Down

0 comments on commit 5590bd0

Please sign in to comment.