Skip to content

Commit e9629b4

Browse files
committed
refactor: localDisputeID into requestID
1 parent 22b10fa commit e9629b4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

contracts/src/CurateV2.sol

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ contract Curate is IArbitrableV2 {
123123

124124
/// @dev Emitted when someone submits a request.
125125
/// @param _itemID The ID of the affected item.
126-
/// @param _localDisputeID Unique dispute identifier within this contract.
127-
event RequestSubmitted(bytes32 indexed _itemID, uint256 _localDisputeID);
126+
/// @param _requestID Unique dispute identifier within this contract.
127+
event RequestSubmitted(bytes32 indexed _itemID, uint256 _requestID);
128128

129129
/// @dev Emitted when the address of the connected Curate contract is set. The Curate is an instance of the Curate contract where each item is the address of a Curate contract related to this one.
130130
/// @param _connectedTCR The address of the connected Curate. TODO: change TCR mentions.
@@ -350,7 +350,7 @@ contract Curate is IArbitrableV2 {
350350
request.arbitrationParamsIndex = uint24(arbitrationParamsIndex);
351351
request.requester = payable(msg.sender);
352352

353-
emit RequestSubmitted(itemID, getLocalDisputeID(itemID, item.requestCount - 1));
353+
emit RequestSubmitted(itemID, getRequestID(itemID, item.requestCount - 1));
354354

355355
if (msg.value > totalCost) {
356356
payable(msg.sender).send(msg.value - totalCost);
@@ -381,7 +381,7 @@ contract Curate is IArbitrableV2 {
381381
request.requester = payable(msg.sender);
382382
request.requestType = RequestType.Clearing;
383383

384-
emit RequestSubmitted(_itemID, getLocalDisputeID(_itemID, item.requestCount - 1));
384+
emit RequestSubmitted(_itemID, getRequestID(_itemID, item.requestCount - 1));
385385

386386
if (msg.value > totalCost) {
387387
payable(msg.sender).send(msg.value - totalCost);
@@ -433,7 +433,7 @@ contract Curate is IArbitrableV2 {
433433
uint256 templateId = request.requestType == RequestType.Registration
434434
? templateIdRegistration
435435
: templateIdRemoval;
436-
emit DisputeRequest(arbitrator, disputeData.disputeID, getLocalDisputeID(_itemID, lastRequestIndex), templateId, "");
436+
emit DisputeRequest(arbitrator, disputeData.disputeID, getRequestID(_itemID, lastRequestIndex), templateId, "");
437437

438438
if (msg.value > totalCost) {
439439
payable(msg.sender).send(msg.value - totalCost);
@@ -533,7 +533,7 @@ contract Curate is IArbitrableV2 {
533533
/// @param _itemID The ID of the item.
534534
/// @param _requestID The ID of the request.
535535
/// @return Local dispute ID.
536-
function getLocalDisputeID(bytes32 _itemID, uint256 _requestID) public pure returns (uint256) {
536+
function getRequestID(bytes32 _itemID, uint256 _requestID) public pure returns (uint256) {
537537
return uint256(keccak256(abi.encodePacked(_itemID, _requestID)));
538538
}
539539

0 commit comments

Comments
 (0)