Skip to content

Commit 3eec874

Browse files
authored
Remove problematic require in getTaskPrice
1 parent 6ab0578 commit 3eec874

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

contracts/standard/arbitration/Linguo.sol

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -552,8 +552,7 @@ contract Linguo is Arbitrable {
552552
*/
553553
function getTaskPrice(uint _taskID) public view returns (uint price) {
554554
Task storage task = tasks[_taskID];
555-
require(task.status == Status.Created, "The task can't be assigned.");
556-
if (now - task.lastInteraction > task.submissionTimeout){
555+
if (now - task.lastInteraction > task.submissionTimeout || task.status != Status.Created) {
557556
price = 0;
558557
} else {
559558
price = task.minPrice + (task.maxPrice - task.minPrice) * (now - task.lastInteraction) / task.submissionTimeout;

0 commit comments

Comments
 (0)