Skip to content

Commit

Permalink
style(intermediate var): remove requestID
Browse files Browse the repository at this point in the history
  • Loading branch information
clesaege authored Feb 25, 2019
1 parent 428de97 commit 5d998a3
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions contracts/standard/permission/ArbitrableTokenList.sol
Original file line number Diff line number Diff line change
Expand Up @@ -358,21 +358,13 @@ contract ArbitrableTokenList is PermissionInterface, Arbitrable {
request.disputeID = request.arbitrator.createDispute.value(_fee)(2, request.arbitratorExtraData);
arbitratorDisputeIDToTokenID[request.arbitrator][request.disputeID] = _tokenID;
request.disputed = true;
uint requestID = uint(
keccak256(
abi.encodePacked(
_tokenID,
token.requests.length - 1
)
)
);
emit Dispute(
request.arbitrator,
request.disputeID,
token.status == TokenStatus.RegistrationRequested
? 2 * metaEvidenceUpdates
: 2 * metaEvidenceUpdates + 1,
requestID
uint(keccak256(abi.encodePacked(_tokenID,token.requests.length - 1)))
);

request.rounds.length++;
Expand Down Expand Up @@ -721,15 +713,7 @@ contract ArbitrableTokenList is PermissionInterface, Arbitrable {
Request storage request = token.requests[token.requests.length - 1];
require(!request.resolved, "The dispute was resolved.");

uint requestID = uint(
keccak256(
abi.encodePacked(
_tokenID,
token.requests.length - 1
)
)
);
emit Evidence(request.arbitrator, requestID, msg.sender, _evidence);
emit Evidence(request.arbitrator, uint(keccak256(abi.encodePacked(_tokenID,token.requests.length - 1))), msg.sender, _evidence);
}

// ************************ //
Expand Down

0 comments on commit 5d998a3

Please sign in to comment.